diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-12-14 19:38:25 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-12-14 19:38:25 +0000 |
commit | acb3f79a4af6acc1709d001a33599bf169712c12 (patch) | |
tree | 6c2b4646df17cb5b7c481f47b94c44bffd17c4f0 /gcc/testsuite/g++.dg | |
parent | f90ac3f0e40f8d7876f8abecc782dd0befd4e2a6 (diff) | |
download | gcc-acb3f79a4af6acc1709d001a33599bf169712c12.zip gcc-acb3f79a4af6acc1709d001a33599bf169712c12.tar.gz gcc-acb3f79a4af6acc1709d001a33599bf169712c12.tar.bz2 |
re PR c++/18793 (ICE in cp_expr_size)
PR c++/18793
* cp-objcp-common.c (cp_expr_size): Loosen assertion.
PR c++/18793
* g++.dg/init/aggr3.C: New test.
From-SVN: r92156
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/init/aggr3.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/aggr3.C b/gcc/testsuite/g++.dg/init/aggr3.C new file mode 100644 index 0000000..3376897 --- /dev/null +++ b/gcc/testsuite/g++.dg/init/aggr3.C @@ -0,0 +1,16 @@ +// PR c++/18793 + +struct S { + S(); + S(const S&); + void operator=(const S&); +}; + +struct X { + int a, b, c, d, e; + S s; +}; + +void foobar () { + X x = {0}; +} |