]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/semantics.c
re PR c++/4629 (non-constant `sizeof (void*)' cannot be used as template argument)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 20 Nov 2001 05:09:34 +0000 (05:09 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 20 Nov 2001 05:09:34 +0000 (05:09 +0000)
commit78a40378a9f48026652466b824b68f0a949f39ee
tree2669e6486e7ce424050fd284519d6fa62f1413da
parent34f62c3635821b9a5501031de5e3af0ef93d4189
re PR c++/4629 (non-constant `sizeof (void*)' cannot be used as template argument)

* dump.c (dump_op): New function.
(cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION.  Use
dump_op.  Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,

PR4629
* semantics.c (finish_sizeof): Make sure that expression created
while processing a template do not have a type.
(finish_alignof): Likewise.
* typeck.c (c_sizeof): Likewise.
(expr_sizeof): Likewise.

From-SVN: r47201
gcc/cp/ChangeLog
gcc/cp/dump.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/sizeof1.C [new file with mode: 0644]
This page took 0.058619 seconds and 5 git commands to generate.