Commit 6ec6e2c2 by Neil Booth Committed by Neil Booth

* g++.dg/parse/parse7.C: New test.

From-SVN: r60805
parent 1a82c94b
2003-01-02 Neil Booth <neil@daikokuya.co.uk>
* g++.dg/parse/parse7.C: New test.
2003-01-02 Mark Mitchell <mark@codesourcery.com>
PR c++/2843
......
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment