diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-25 18:24:28 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-25 18:24:28 +0000 |
commit | 3f1ab65c7a6934c38a3a7ab9c48e8f3f76783f78 (patch) | |
tree | 5895a2df3e28a6de8edc59ef0ff6cc7b4434707f /gcc/testsuite/g++.dg/init | |
parent | e4e0384899fdf4100f46438990234b78b1f323f7 (diff) | |
download | gcc-3f1ab65c7a6934c38a3a7ab9c48e8f3f76783f78.tar.gz |
PR c++/50866
PR c++/41449
* semantics.c (maybe_cleanup_point_expr_void): No longer static.
* typeck2.c (split_nonconstant_init_1): Use it.
* cp-tree.h: Declare it.
* decl.c (wrap_cleanups_r): Stop at CLEANUP_POINT_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180442 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/init')
-rw-r--r-- | gcc/testsuite/g++.dg/init/aggr7.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/aggr7.C b/gcc/testsuite/g++.dg/init/aggr7.C new file mode 100644 index 00000000000..bec952c230c --- /dev/null +++ b/gcc/testsuite/g++.dg/init/aggr7.C @@ -0,0 +1,13 @@ +// PR c++/50866 + +struct A { A(); ~A(); }; +struct B { B(const char *, const A& = A()); ~B(); }; +struct C { + B b1, b2; +}; +void f() +{ + C c = { + "a","b" + }; +} |