]> gcc.gnu.org Git - gcc.git/commit
re PR c++/8227 (g++ 3.3: ctors not called in static array initialization)
authorMark Mitchell <mark@codesourcery.com>
Sun, 1 Dec 2002 04:55:20 +0000 (04:55 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 1 Dec 2002 04:55:20 +0000 (04:55 +0000)
commit328de7c2f1018e5553f48760aa0b89bbc28d4c8b
treeb245d8c933469c93a0bd802e68f291b65025b67f
parentf6318a2baf8e87c2fd7f02308b3c2d05569684a2
re PR c++/8227 (g++ 3.3: ctors not called in static array initialization)

PR c++/8227
* decl.c (layout_var_decl): Deal gracefully with erroneous types.
(check_initializer): Validate the type of the initialized
variable, even if the initializer is absent.
* typeck.c (cp_type_quals): Deal gracefully with erroneous types.

PR c++/8227
* g++.dg/template/ctor2.C: New test.

From-SVN: r59672
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/ctor2.C [new file with mode: 0644]
This page took 0.057594 seconds and 5 git commands to generate.