This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29435] [4.1 Regression] seg fault with sizeof and templates
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2006 01:56:34 -0000
- Subject: [Bug c++/29435] [4.1 Regression] seg fault with sizeof and templates
- References: <bug-29435-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from mmitchel at gcc dot gnu dot org 2006-10-17 01:56 -------
Subject: Bug 29435
Author: mmitchel
Date: Tue Oct 17 01:56:23 2006
New Revision: 117813
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117813
Log:
PR c++/29435
* typeck.c (cxx_sizeof_or_alignof_type): Complete non-dependent
types when their sizes are required. Refine test for VLAs.
PR c++/29435
* g++.dg/template/sizeof11.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/sizeof11.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29435