public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument
@ 2006-05-02 19:21 reichelt at gcc dot gnu dot org
2006-05-02 21:04 ` [Bug c++/27397] " pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-02 19:21 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE on mainline:
=============================
template<int(> struct A;
=============================
bugA.cc:1: error: expected `)' before '>' token
bugA.cc:1: internal compiler error: tree check: accessed elt 1 of tree_vec with
0 elts in get_innermost_template_args, at cp/pt.c:490
Please submit a full bug report, [etc.]
A similar testcase causes an ICE in a different function:
=============================
template<typename> struct A
{
template<int(> struct B;
};
A<char> a;
=============================
bugB.cc:3: error: expected `)' before '>' token
bugB.cc: In instantiation of 'A<char>':
bugB.cc:6: instantiated from here
bugB.cc:3: internal compiler error: tree check: accessed elt 1 of tree_vec with
0 elts in add_outermost_template_args, at cp/pt.c:459
Please submit a full bug report, [etc.]
The second testcase also ICEd before GCC 3.4.0.
--
Summary: [4.2 regression] ICE on invalid template argument
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
@ 2006-05-02 21:04 ` pinskia at gcc dot gnu dot org
2006-05-03 16:00 ` bangerth at dealii dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-02 21:04 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
2006-05-02 21:04 ` [Bug c++/27397] " pinskia at gcc dot gnu dot org
@ 2006-05-03 16:00 ` bangerth at dealii dot org
2006-05-04 15:21 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2006-05-03 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bangerth at dealii dot org 2006-05-03 16:00 -------
This seems to work on the 4.1.x branch, however. So it must be a regression.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
2006-05-02 21:04 ` [Bug c++/27397] " pinskia at gcc dot gnu dot org
2006-05-03 16:00 ` bangerth at dealii dot org
@ 2006-05-04 15:21 ` pinskia at gcc dot gnu dot org
2006-06-04 18:45 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-04 15:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-04 15:21 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-04 15:21:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-05-04 15:21 ` pinskia at gcc dot gnu dot org
@ 2006-06-04 18:45 ` mmitchel at gcc dot gnu dot org
2006-07-05 18:29 ` jason at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 18:45 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-06-04 18:45 ` mmitchel at gcc dot gnu dot org
@ 2006-07-05 18:29 ` jason at gcc dot gnu dot org
2006-07-06 0:57 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-07-05 18:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2006-07-05 18:29 -------
Perhaps it doesn't ICE on the 4.1 branch only because release branches don't
have checking enabled?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-07-05 18:29 ` jason at gcc dot gnu dot org
@ 2006-07-06 0:57 ` reichelt at gcc dot gnu dot org
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-06 0:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-07-06 00:57 -------
> Perhaps it doesn't ICE on the 4.1 branch only because release branches don't
> have checking enabled?
All the compilers I use for testing were configured with --enable-checking
- even GCC 2.95.3 ;).
Which means your guess is wrong. The ICE doesn't happen on the 4.1 branch
even with checking enabled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-07-06 0:57 ` reichelt at gcc dot gnu dot org
@ 2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:31 ` janis at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:22 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
@ 2006-08-12 21:31 ` janis at gcc dot gnu dot org
2006-08-30 20:52 ` lmillward at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-12 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from janis at gcc dot gnu dot org 2006-08-12 21:31 -------
A testcase on powerpc-linux with the first testcase, mainline, checking
enabled, identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=113081
r113081 | mmitchel | 2006-04-19 16:58:23 +0000 (Wed, 19 Apr 2006)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-08-12 21:31 ` janis at gcc dot gnu dot org
@ 2006-08-30 20:52 ` lmillward at gcc dot gnu dot org
2006-09-02 14:16 ` lmillward at gcc dot gnu dot org
2006-09-02 14:17 ` lmillward at gcc dot gnu dot org
10 siblings, 0 replies; 13+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-08-30 20:52 UTC (permalink / raw)
To: gcc-bugs
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-05-04 15:21:21 |2006-08-30 20:51:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-08-30 20:52 ` lmillward at gcc dot gnu dot org
@ 2006-09-02 14:16 ` lmillward at gcc dot gnu dot org
2006-09-02 14:17 ` lmillward at gcc dot gnu dot org
10 siblings, 0 replies; 13+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-09-02 14:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from lmillward at gcc dot gnu dot org 2006-09-02 14:15 -------
Subject: Bug 27397
Author: lmillward
Date: Sat Sep 2 14:15:37 2006
New Revision: 116661
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116661
Log:
2006-09-02 Lee Millward <lee.millward@codesourcery.com>
PR c++/27670
PR c++/27493
PR c++/27494
PR c++/27397
* parser.c (cp_parser_template_parameter_list): Add
invalid template parameters to the parameter list as
error_mark_node.
* g++.dg/template/operator9.C: New test.
* g++.dg/template/operator7.C: New test.
* g++.dg/template/operator8.C: New test.
* g++.dg/template/crash57.C: New test.
* g++.dg/template/typedef4.C: Adjust error markers.
* g++.dg/template/typedef5.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/template/crash57.C
trunk/gcc/testsuite/g++.dg/template/operator7.C
trunk/gcc/testsuite/g++.dg/template/operator8.C
trunk/gcc/testsuite/g++.dg/template/operator9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/typedef4.C
trunk/gcc/testsuite/g++.dg/template/typedef5.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2006-09-02 14:16 ` lmillward at gcc dot gnu dot org
@ 2006-09-02 14:17 ` lmillward at gcc dot gnu dot org
10 siblings, 0 replies; 13+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-09-02 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from lmillward at gcc dot gnu dot org 2006-09-02 14:17 -------
Fixed in 4.2.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/27397] [4.2 regression] ICE on invalid template argument
[not found] <bug-27397-4@http.gcc.gnu.org/bugzilla/>
@ 2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
0 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-03 12:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:fd7eb4bc94cafa745eba75c64fa483a1689a5aad
commit r12-380-gfd7eb4bc94cafa745eba75c64fa483a1689a5aad
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Feb 12 16:30:23 2021 -0800
GCC_CET_HOST_FLAGS: Check if host supports multi-byte NOPs
Sync with binutils for PR binutils/27397. Check if host supports
multi-byte NOPs before enabling CET on host.
config/
PR bootstrap/99703
* cet.m4 (GCC_CET_HOST_FLAGS): Check if host supports multi-byte
NOPs.
libiberty/
PR bootstrap/99703
* configure: Regenerated.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2021-05-03 12:01 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 19:21 [Bug c++/27397] New: [4.2 regression] ICE on invalid template argument reichelt at gcc dot gnu dot org
2006-05-02 21:04 ` [Bug c++/27397] " pinskia at gcc dot gnu dot org
2006-05-03 16:00 ` bangerth at dealii dot org
2006-05-04 15:21 ` pinskia at gcc dot gnu dot org
2006-06-04 18:45 ` mmitchel at gcc dot gnu dot org
2006-07-05 18:29 ` jason at gcc dot gnu dot org
2006-07-06 0:57 ` reichelt at gcc dot gnu dot org
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:31 ` janis at gcc dot gnu dot org
2006-08-30 20:52 ` lmillward at gcc dot gnu dot org
2006-09-02 14:16 ` lmillward at gcc dot gnu dot org
2006-09-02 14:17 ` lmillward at gcc dot gnu dot org
[not found] <bug-27397-4@http.gcc.gnu.org/bugzilla/>
2021-05-03 12:01 ` cvs-commit at gcc dot gnu.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).