public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14503] New: Segfault when compiling template function
@ 2004-03-09 16:50 a dot motzkau at web dot de
  2004-03-09 16:56 ` [Bug c++/14503] [testcase] " pinskia at gcc dot gnu dot org
  2004-06-08  3:35 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: a dot motzkau at web dot de @ 2004-03-09 16:50 UTC (permalink / raw)
  To: gcc-bugs

Hi there,

Compiling the following file:

# 1 "templ.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "templ.cc"
template <class A, class B>
class T {};

class Main
{
    public:
        struct S {};
        template <class Param> class U;
};
  
template <class Param>
class Main::U
{
    template <class UnknownParam>
    void handle(T<struct S,UnknownParam> &x) {}
};


With: g++ -c templ.cc
I get:

templ.cc:15: 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.

Environment:
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 20040306)


The same also with g++ 3.2.3:
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.3 (Debian)

Greetings,
Alexander Motzkau

-- 
           Summary: Segfault when compiling template function
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: a dot motzkau at web dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-linux
  GCC host triplet: i486-linux
GCC target triplet: i486-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14503


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/14503] [testcase] Segfault when compiling template function
  2004-03-09 16:50 [Bug c++/14503] New: Segfault when compiling template function a dot motzkau at web dot de
@ 2004-03-09 16:56 ` pinskia at gcc dot gnu dot org
  2004-06-08  3:35 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-09 16:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-09 16:56 -------
Confirmed in 3.3.1 but it is fixed for 3.4.0, this is not a regression so I can closing as fixed after I do a 
testcase for this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |2.95.3 3.0.4 3.2.2 3.2.3
                   |                            |3.3.1
      Known to work|                            |3.4.0 3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-09 16:56:37
               date|                            |
            Summary|Segfault when compiling     |[testcase] Segfault when
                   |template function           |compiling template function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14503


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/14503] [testcase] Segfault when compiling template function
  2004-03-09 16:50 [Bug c++/14503] New: Segfault when compiling template function a dot motzkau at web dot de
  2004-03-09 16:56 ` [Bug c++/14503] [testcase] " pinskia at gcc dot gnu dot org
@ 2004-06-08  3:35 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-08  3:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-08 03:35 -------
I had forgot to close this as fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14503


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-08  3:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 16:50 [Bug c++/14503] New: Segfault when compiling template function a dot motzkau at web dot de
2004-03-09 16:56 ` [Bug c++/14503] [testcase] " pinskia at gcc dot gnu dot org
2004-06-08  3:35 ` 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).