URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [parse7.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR c++/3650 */
/* { dg-do compile } */
class class1 {
public:
explicit class1(double a) { data = a; }
double data;
};
class class2 {
public:
class2(class1 a, float t) { }
class2(float t, class1 a) { }
};
int main() {
float t2 = 1.5;
double pir = 3.14159;
// Used to get: error: type specifier omitted for parameter `t2'
class2 h(class1(double(pir)), t2);
class2 i(class1(pir), t2);
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log