public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
@ 2006-10-29 2:42 jkherciueh at gmx dot net
2006-10-29 6:45 ` [Bug c++/29632] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: jkherciueh at gmx dot net @ 2006-10-29 2:42 UTC (permalink / raw)
To: gcc-bugs
The following crashes g++:
struct nullptr_type {
nullptr_type ( void ) {}
template < typename T >
operator T* ( void ) const {
return ( 0 );
}
} const nullptr;
int main ( void ) {
0 == nullptr;
}
g++ -v:
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Configured with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.6
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libgcj --enable-languages=c,c++,f77 --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
--
Summary: ICE on invalid code: regenerate_decl_from_template, at
cp/pt.c:10969
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jkherciueh at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1/4.2 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
@ 2006-10-29 6:45 ` pinskia at gcc dot gnu dot org
2006-11-13 3:39 ` [Bug c++/29632] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-29 6:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-29 06:44 -------
Confirmed, we stopped ICEing sometime between 3.4.x and 4.0.0.
I am going to mark this as a regression, though I don't know if it should or
not.
The ICE has happened since at least 2.95.3.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2006-10-29 06:44:51
date| |
Summary|ICE on invalid code: |[4.0/4.1/4.2 Regression] ICE
|regenerate_decl_from_templat|on invalid code:
|e, at cp/pt.c:10969 |regenerate_decl_from_templat
| |e, at cp/pt.c:10969
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1/4.2/4.3 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
2006-10-29 6:45 ` [Bug c++/29632] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-11-13 3:39 ` mmitchel at gcc dot gnu dot org
2006-12-04 4:51 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-11-13 3:39 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=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1/4.2/4.3 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
2006-10-29 6:45 ` [Bug c++/29632] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-11-13 3:39 ` [Bug c++/29632] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
@ 2006-12-04 4:51 ` mmitchel at gcc dot gnu dot org
2006-12-04 18:01 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-04 4:51 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
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=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1/4.2/4.3 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
` (2 preceding siblings ...)
2006-12-04 4:51 ` mmitchel at gcc dot gnu dot org
@ 2006-12-04 18:01 ` mmitchel at gcc dot gnu dot org
2006-12-04 22:15 ` [Bug c++/29632] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-04 18:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-12-04 18:00 -------
Subject: Bug 29632
Author: mmitchel
Date: Mon Dec 4 18:00:32 2006
New Revision: 119499
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119499
Log:
PR c++/29632
* call.c (add_builtin_candidate): Do not permit NULL pointer
constants to be compared with template parameters.
PR c++/29632
* g++.dg/template/error23.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/error23.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1/4.2 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
` (3 preceding siblings ...)
2006-12-04 18:01 ` mmitchel at gcc dot gnu dot org
@ 2006-12-04 22:15 ` mmitchel at gcc dot gnu dot org
2006-12-04 22:16 ` [Bug c++/29632] [4.0/4.1 " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-04 22:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-12-04 22:14 -------
Subject: Bug 29632
Author: mmitchel
Date: Mon Dec 4 22:14:42 2006
New Revision: 119512
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119512
Log:
PR c++/29632
* call.c (add_builtin_candidate): Do not permit NULL pointer
constants to be compared with template parameters.
PR c++/29632
* g++.dg/template/error23.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/error23.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/call.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
` (4 preceding siblings ...)
2006-12-04 22:15 ` [Bug c++/29632] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-12-04 22:16 ` mmitchel at gcc dot gnu dot org
2006-12-04 23:21 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-04 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-12-04 22:16 -------
Fixed in 4.2.0, 4.3.0.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 Regression] ICE|[4.0/4.1 Regression] ICE on
|on invalid code: |invalid code:
|regenerate_decl_from_templat|regenerate_decl_from_templat
|e, at cp/pt.c:10969 |e, at cp/pt.c:10969
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0/4.1 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
` (5 preceding siblings ...)
2006-12-04 22:16 ` [Bug c++/29632] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-12-04 23:21 ` mmitchel at gcc dot gnu dot org
2006-12-04 23:22 ` [Bug c++/29632] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 20:46 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-04 23:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-12-04 23:21 -------
Subject: Bug 29632
Author: mmitchel
Date: Mon Dec 4 23:21:03 2006
New Revision: 119517
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119517
Log:
PR c++/29632
* call.c (add_builtin_candidate): Do not permit NULL pointer
constants to be compared with template parameters.
PR c++/29632
* g++.dg/template/error23.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/error23.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/call.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
` (6 preceding siblings ...)
2006-12-04 23:21 ` mmitchel at gcc dot gnu dot org
@ 2006-12-04 23:22 ` mmitchel at gcc dot gnu dot org
2007-02-03 20:46 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-04 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mmitchel at gcc dot gnu dot org 2006-12-04 23:21 -------
Fixed in 4.1.2.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.0/4.1 Regression] ICE on |[4.0 Regression] ICE on
|invalid code: |invalid code:
|regenerate_decl_from_templat|regenerate_decl_from_templat
|e, at cp/pt.c:10969 |e, at cp/pt.c:10969
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/29632] [4.0 Regression] ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
` (7 preceding siblings ...)
2006-12-04 23:22 ` [Bug c++/29632] [4.0 " mmitchel at gcc dot gnu dot org
@ 2007-02-03 20:46 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from gdr at gcc dot gnu dot org 2007-02-03 20:46 -------
Fixed in GCC-4.1.2.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29632
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-02-03 20:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-29 2:42 [Bug c++/29632] New: ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969 jkherciueh at gmx dot net
2006-10-29 6:45 ` [Bug c++/29632] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-11-13 3:39 ` [Bug c++/29632] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2006-12-04 4:51 ` mmitchel at gcc dot gnu dot org
2006-12-04 18:01 ` mmitchel at gcc dot gnu dot org
2006-12-04 22:15 ` [Bug c++/29632] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-12-04 22:16 ` [Bug c++/29632] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-12-04 23:21 ` mmitchel at gcc dot gnu dot org
2006-12-04 23:22 ` [Bug c++/29632] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 20:46 ` gdr 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).