re PR c++/12218 (runtime segfault when initializing global variable with pointer...
authorMark Mitchell <mark@codesourcery.com>
Wed, 17 Dec 2003 04:45:53 +0000 (04:45 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 17 Dec 2003 04:45:53 +0000 (04:45 +0000)
commit0dff37fb924f4d2c44f2912a524dfc4c152ce945
treef5615486a4ca2c135e1b0e06d6be4f8306350666
parent085bd3ffb60640b70a646f430e973437f3ceaed2
re PR c++/12218 (runtime segfault when initializing global variable with pointer-to-member)

PR c++/12218
* varasm.c (initializer_constant_valid_p): Allow a conversion from
an integral constant to an OFFSET_TYPE.

PR c++/12696
* decl.c (reshape_init): Recover quickly from errors.

PR c++/12218
* g++.dg/init/pm3.C: New test.

PR c++/12696
* g++.dg/init/error1.C: New test.

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