public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17233] New: Segfault on legitimate code
@ 2004-08-29 23:23 gkajmowi at tbaytel dot net
2004-08-29 23:24 ` [Bug c++/17233] " gkajmowi at tbaytel dot net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gkajmowi at tbaytel dot net @ 2004-08-29 23:23 UTC (permalink / raw)
To: gcc-bugs
The attached code causes the compiler to segfault.
The code is from an attempt to independently implement the C++ standard library.
configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure --
prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --include
dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-
data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-
pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --
enable-shared --host=i686-pc-linux-gnu --target=i686-pc-lin
ux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --
enable-long-long --disable-checking --disable-libunwind-excepti
ons --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-
include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g+
+-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-
included-gettext --disable-multilib --enable-__cxa_atexit --enab
le-clocale=generic
--
Summary: Segfault on legitimate code
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gkajmowi at tbaytel dot net
CC: gcc-bugs at gcc dot gnu dot org,gkajmowi at tbaytel dot
net
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17233] Segfault on legitimate code
2004-08-29 23:23 [Bug c++/17233] New: Segfault on legitimate code gkajmowi at tbaytel dot net
@ 2004-08-29 23:24 ` gkajmowi at tbaytel dot net
2004-08-29 23:38 ` [Bug c++/17233] Segfault on illegitimate code gkajmowi at tbaytel dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: gkajmowi at tbaytel dot net @ 2004-08-29 23:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gkajmowi at tbaytel dot net 2004-08-29 23:24 -------
Created an attachment (id=7002)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7002&action=view)
Autogenerated preprocessed source causing segfault
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17233] Segfault on illegitimate code
2004-08-29 23:23 [Bug c++/17233] New: Segfault on legitimate code gkajmowi at tbaytel dot net
2004-08-29 23:24 ` [Bug c++/17233] " gkajmowi at tbaytel dot net
@ 2004-08-29 23:38 ` gkajmowi at tbaytel dot net
2004-08-29 23:44 ` pinskia at gcc dot gnu dot org
2004-08-30 20:06 ` [Bug c++/17233] Segfault on missing angle bracket reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: gkajmowi at tbaytel dot net @ 2004-08-29 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gkajmowi at tbaytel dot net 2004-08-29 23:38 -------
Found problem - code contained a template definition without a closing angle
bracket. Adding angle bracket causes worning about duplicate definition of
default parameters for template (good).
Thus code was invalid, but should not have caused a segfault. I've decreased
priority to deal with this issue accordingly.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Priority|P2 |P1
Summary|Segfault on legitimate code |Segfault on illegitimate
| |code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17233] Segfault on illegitimate code
2004-08-29 23:23 [Bug c++/17233] New: Segfault on legitimate code gkajmowi at tbaytel dot net
2004-08-29 23:24 ` [Bug c++/17233] " gkajmowi at tbaytel dot net
2004-08-29 23:38 ` [Bug c++/17233] Segfault on illegitimate code gkajmowi at tbaytel dot net
@ 2004-08-29 23:44 ` pinskia at gcc dot gnu dot org
2004-08-30 20:06 ` [Bug c++/17233] Segfault on missing angle bracket reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-29 23:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-29 23:44 -------
Fixed for 3.4.0, before 3.3.3, we got an ICE after error. but since this is an ICE on invalid code, I am
closing as fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17233
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/17233] Segfault on missing angle bracket
2004-08-29 23:23 [Bug c++/17233] New: Segfault on legitimate code gkajmowi at tbaytel dot net
` (2 preceding siblings ...)
2004-08-29 23:44 ` pinskia at gcc dot gnu dot org
@ 2004-08-30 20:06 ` reichelt at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-30 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-30 20:06 -------
Just for the record, here's a reduced testcase:
===================================
template <typename=int> struct A;
template <typename=int struct A;
===================================
This triggers a segfault without any prior error message.
Nevertheless, it's not a regression, so we keep it as fixed for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Summary|Segfault on illegitimate |Segfault on missing angle
|code |bracket
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17233
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-30 20:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-29 23:23 [Bug c++/17233] New: Segfault on legitimate code gkajmowi at tbaytel dot net
2004-08-29 23:24 ` [Bug c++/17233] " gkajmowi at tbaytel dot net
2004-08-29 23:38 ` [Bug c++/17233] Segfault on illegitimate code gkajmowi at tbaytel dot net
2004-08-29 23:44 ` pinskia at gcc dot gnu dot org
2004-08-30 20:06 ` [Bug c++/17233] Segfault on missing angle bracket reichelt 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).