parent
c818e8b86f
commit
64505efc35
|
@ -1,5 +1,6 @@
|
|||
2003-01-01 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||
|
||||
* g++.dg/parse/parens1.C: New test.
|
||||
|
||||
* g++.dg/parse/parens2.C: Removed, turned out to duplicate
|
||||
angle-bracket1.C.
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/* PR c++/8237 */
|
||||
/* { dg-do compile } */
|
||||
class A {
|
||||
public:
|
||||
A() { }
|
||||
};
|
||||
|
||||
class B {
|
||||
public:
|
||||
B(A a) { }
|
||||
void form() { }
|
||||
};
|
||||
|
||||
int main() {
|
||||
// This used to give a parse error.
|
||||
B(A()).form();
|
||||
}
|
||||
|
Loading…
Reference in New Issue