]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/10796 (ICE (segfault) when defining an enum with two values: -1 and MAX_INT...
authorMark Mitchell <mark@codesourcery.com>
Fri, 27 Jun 2003 21:21:08 +0000 (21:21 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 27 Jun 2003 21:21:08 +0000 (21:21 +0000)
commite455bc273ebd4e45e4383b9031f8c4d48a4728a8
treeb9408cbb00f6506219f8eaca4f93ac88b1312eec
parentdc65c307c80fc0817b0452685f3e4b804f1d521e
re PR c++/10796 (ICE (segfault) when defining an enum with two values: -1 and MAX_INT_64BIT)

PR c++/10796
* decl.c (finish_enum): Implement DR377.

* decl.c (cp_finish_decl): Don't make variables with reference
type readonly while they are being initialized.

PR c++/10796
* g++.dg/init/enum1.C: New test.

From-SVN: r68610
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/enum1.C [new file with mode: 0644]