Commit 64505efc by Nathanael Nerode

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

From-SVN: r60746
parent c818e8b8
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.
......
/* 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();
}
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