]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/21025 (ICE on template)
authorMark Mitchell <mark@codesourcery.com>
Sun, 17 Apr 2005 03:37:16 +0000 (03:37 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 17 Apr 2005 03:37:16 +0000 (03:37 +0000)
commitf939abddc98d270e4f409455e53eeb330f96fd20
tree2e0f4055dd7a4c1c7f499d2bf755b3d826e561e3
parentdb7f59dc0ab63b18538e808b4d32cad96d1acd3e
re PR c++/21025 (ICE on template)

PR c++/21025
* typeck.c (cxx_sizeof_or_alignof_type): Check whether the type to
which sizeof/alignof is dependent, rather than just whether we are
processing_template_decl.

PR c++/21025
* g++.dg/template/sizeof9.C: New test.

From-SVN: r98250
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/sizeof9.C [new file with mode: 0644]