diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-11-04 00:42:09 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-11-04 00:42:09 +0000 |
commit | 846276fae10922d24c9be666e264aa8058384de4 (patch) | |
tree | 4ca89dd9ba5813f41bcbd81b5e307b3623e56a9c | |
parent | 1d58d7bf0f010299bf2a93542c7e2463253650ea (diff) | |
download | gcc-846276fae10922d24c9be666e264aa8058384de4.zip gcc-846276fae10922d24c9be666e264aa8058384de4.tar.gz gcc-846276fae10922d24c9be666e264aa8058384de4.tar.bz2 |
re PR c++/52071 (Constructor invocation confused)
2013-11-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52071
* g++.dg/parse/pr52071.C: New.
From-SVN: r204343
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/pr52071.C | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 09dc343..19e5c38 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2013-11-03 Paolo Carlini <paolo.carlini@oracle.com> + PR c++/52071 + * g++.dg/parse/pr52071.C: New. + +2013-11-03 Paolo Carlini <paolo.carlini@oracle.com> + PR c++/38313 * g++.dg/lookup/name-clash10.C: New. diff --git a/gcc/testsuite/g++.dg/parse/pr52071.C b/gcc/testsuite/g++.dg/parse/pr52071.C new file mode 100644 index 0000000..99456c0 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/pr52071.C @@ -0,0 +1,23 @@ +// PR c++/52071 + +struct C1 { + C1(int); +}; + +struct C2 { + C2(); + C2(C1); +}; + +void f() +{ + int x; + int y = 1; + C2 vc; + + vc = C2(C1(x = y)); + + vc = (C2(C1(x = y))); + + vc = (C2(C1((0, x = y)))); +} |