OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash107.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44625
2
// { dg-do compile }
3
// { dg-options "" }
4
 
5
template struct Vec { // { dg-message "note" }
6
    Vec& operator^=(Vec& rhs)     {
7
        union {
8
            struct {FP_ x,y,z;};
9
        }; // { dg-error "anonymous struct" }
10
        X = y*rhs.z() - z*rhs.y(); // { dg-error "not declared|no member" }
11
    }
12
    Vec& operator^(Vec& rhs) {
13
        return Vec(*this)^=rhs; // { dg-message "required" }
14
    }
15
};
16
Vec v(3,4,12); // { dg-error "no matching" }
17
// { dg-message "note" { target *-*-* } 16 }
18
Vec V(12,4,3);  // { dg-error "no matching" }
19
// { dg-message "note" { target *-*-* } 18 }
20
Vec c = v^V;   // { dg-message "required" }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.