re PR c++/21025 (ICE on template)
authorMark Mitchell <mark@codesourcery.com>
Sun, 17 Apr 2005 03:43:01 +0000 (03:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 17 Apr 2005 03:43:01 +0000 (03:43 +0000)
commit79bb956ed03bd2d6b20414c98dbfc28f7a397436
treee23eef57589c8ba91faf6477714d376dd099eb9f
parent2f3580376486a962824b45a2309c6c572f92997b
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: r98252
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/sizeof9.C [new file with mode: 0644]