public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21025] New: ICE on template
@ 2005-04-14 16:47 algrant at acm dot org
2005-04-14 16:54 ` [Bug c++/21025] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: algrant at acm dot org @ 2005-04-14 16:47 UTC (permalink / raw)
To: gcc-bugs
3.4.3 seg faults on this:
template<int N> struct X { char x[N]; };
template<typename T> X<1 + sizeof(T) - sizeof(T)> F(T const &);
template<int N> struct S { int d() { F(1); } };
Appears to be quite dependent on the fact that the template argument
involves "sizeof(T) - sizeof(T)" - if the - is changed to a +, it works.
Ok in 3.3.2, and ok if S is not a template.
--
Summary: ICE on template
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: algrant at acm dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
@ 2005-04-14 16:54 ` pinskia at gcc dot gnu dot org
2005-04-17 2:59 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-14 16:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-14 16:52 -------
Confirmed.
It also worked with "3.4.0 20040116" which means it was broken after the branch of 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.4.0 4.0.0 4.1.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2005-04-14 16:52:50
date| |
Summary|ICE on template |[3.4/4.0/4.1 Regression] ICE
| |on template
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
2005-04-14 16:54 ` [Bug c++/21025] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-04-17 2:59 ` mmitchel at gcc dot gnu dot org
2005-04-17 3:30 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-17 2:59 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
2005-04-14 16:54 ` [Bug c++/21025] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-17 2:59 ` mmitchel at gcc dot gnu dot org
@ 2005-04-17 3:30 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:35 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-17 3:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-17 03:30 -------
Subject: Bug 21025
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: mmitchel@gcc.gnu.org 2005-04-17 03:30:17
Modified files:
gcc/cp : ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: sizeof9.C
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.31&r2=1.4648.2.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.125&r2=1.5084.2.126
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/sizeof9.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
` (2 preceding siblings ...)
2005-04-17 3:30 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-17 3:35 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-17 3:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-17 03:35 -------
Subject: Bug 21025
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2005-04-17 03:35:27
Added files:
gcc/testsuite/g++.dg/template: sizeof9.C
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/sizeof9.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
` (4 preceding siblings ...)
2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:43 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:50 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-17 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-17 03:37 -------
Subject: Bug 21025
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2005-04-17 03:37:21
Modified files:
gcc/cp : ChangeLog typeck.c
gcc/testsuite : ChangeLog
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.211&r2=1.3892.2.212
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.519.2.23&r2=1.519.2.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.380&r2=1.3389.2.381
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
` (3 preceding siblings ...)
2005-04-17 3:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-17 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-17 03:37 -------
Subject: Bug 21025
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: mmitchel@gcc.gnu.org 2005-04-17 03:37:35
Modified files:
gcc/cp : typeck.c
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.616.2.5&r2=1.616.2.6
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
` (5 preceding siblings ...)
2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-17 3:43 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:50 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-17 3:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-17 03:43 -------
Subject: Bug 21025
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-04-17 03:43:01
Modified files:
gcc/cp : ChangeLog typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: sizeof9.C
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4709&r2=1.4710
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.623&r2=1.624
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5357&r2=1.5358
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/sizeof9.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/21025] [3.4/4.0/4.1 Regression] ICE on template
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
` (6 preceding siblings ...)
2005-04-17 3:43 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-17 3:50 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-17 3:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-04-17 03:50 -------
Fixed in 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21025
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-04-17 3:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-14 16:47 [Bug c++/21025] New: ICE on template algrant at acm dot org
2005-04-14 16:54 ` [Bug c++/21025] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-17 2:59 ` mmitchel at gcc dot gnu dot org
2005-04-17 3:30 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:35 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:37 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:43 ` cvs-commit at gcc dot gnu dot org
2005-04-17 3:50 ` mmitchel at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).