public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17890] New: segfault prepeding void to nested class constructor
@ 2004-10-08 9:37 jgibbs at bluearc dot com
2004-10-08 11:25 ` [Bug c++/17890] " reichelt at gcc dot gnu dot org
2004-10-08 11:55 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: jgibbs at bluearc dot com @ 2004-10-08 9:37 UTC (permalink / raw)
To: gcc-bugs
Debian Linux.
uname -a:
---------
Linux 2.6.8-1-k7 #1 Mon Sep 13 23:56:00 EDT 2004 i686 GNU/Linux
gcc -v:
--------------
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v --enable-
languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --
mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-
dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --
without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-
debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040401)
src.cpp:
------------
template <typename T>
struct B
{
struct BB
{
BB ();
};
};
template <typename T>
inline void B<T>::BB::BB ()
{
}
cmd line:
---------
g++ -c src.cpp
output:
-------
src.cpp:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
additional comments:
--------------------
Remove the 'void' return value from the nested class's constructor and it
compiles okay, as expected. The constructor is currently declared 'inline'
outside the body of the class. Move the constructor implementation inside the
body of the class and gcc correctly reports:
src.cpp:6: error: return type specification for constructor invalid
--
Summary: segfault prepeding void to nested class constructor
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jgibbs at bluearc dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17890
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/17890] segfault prepeding void to nested class constructor
2004-10-08 9:37 [Bug c++/17890] New: segfault prepeding void to nested class constructor jgibbs at bluearc dot com
@ 2004-10-08 11:25 ` reichelt at gcc dot gnu dot org
2004-10-08 11:55 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-08 11:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-08 11:25 -------
This is fixed in gcc 3.4.0 with the new parser.
Since it's not a regression, I'll close the PR.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17890
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/17890] segfault prepeding void to nested class constructor
2004-10-08 9:37 [Bug c++/17890] New: segfault prepeding void to nested class constructor jgibbs at bluearc dot com
2004-10-08 11:25 ` [Bug c++/17890] " reichelt at gcc dot gnu dot org
@ 2004-10-08 11:55 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 11:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-08 11:55 -------
Close it as fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17890
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-08 11:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 9:37 [Bug c++/17890] New: segfault prepeding void to nested class constructor jgibbs at bluearc dot com
2004-10-08 11:25 ` [Bug c++/17890] " reichelt at gcc dot gnu dot org
2004-10-08 11:55 ` pinskia 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).