re PR c++/5661 (Gcc 3.0.3 Seg faults compiling bad code)
authorMark Mitchell <mark@codesourcery.com>
Fri, 11 Oct 2002 19:55:21 +0000 (19:55 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 11 Oct 2002 19:55:21 +0000 (19:55 +0000)
commitdac45b5c091237cb7e8f723e75b3897a8f763432
tree4a570b2a83e5295f39745305c4a521b00d6df0f7
parent46dd38849ba39f228f467edab38cfd60e6809b6e
re PR c++/5661 (Gcc 3.0.3 Seg faults compiling bad code)

PR c++/5661
* cp-tree.h (variably_modified_type_p): New function.
(grokdeclarator) Tighten check for variably modified types as
fields.
* pt.c (convert_template_argument): Do not allow variably modified
types as template arguments.
* tree.c (variably_modified_type_p): New function.

PR c++/5661
* g++.dg/ext/vlm1.C: New test.
* g++.dg/ext/vlm2.C: Likewise.

From-SVN: r58060
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vlm1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/vlm2.C [new file with mode: 0644]