public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34089]  New: Segfault on specialization using struct instead of template function.
@ 2007-11-13 23:40 drahflow at gmx dot de
  2007-11-15  4:39 ` [Bug c++/34089] [4.1/4.2/4.3 regression] " bangerth at dealii dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: drahflow at gmx dot de @ 2007-11-13 23:40 UTC (permalink / raw)
  To: gcc-bugs

Attempting to compile the following file

template<typename F> void foo() { };
template<typename F> struct foo<F> { };

results in

bug.c++:2: 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.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.

which is obviously undesirable.

g++ --version
g++ (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


-- 
           Summary: Segfault on specialization using struct instead of
                    template function.
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drahflow at gmx dot de


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


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

* [Bug c++/34089] [4.1/4.2/4.3 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
@ 2007-11-15  4:39 ` bangerth at dealii dot org
  2007-11-19  3:50 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2007-11-15  4:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at dealii dot org  2007-11-15 04:38 -------
Confirmed, a regression introduced in 4.0.x.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.1.2 4.2.0 4.0.4
      Known to work|                            |3.4.6
   Last reconfirmed|0000-00-00 00:00:00         |2007-11-15 04:38:59
               date|                            |
            Summary|Segfault on specialization  |[4.1/4.2/4.3 regression]
                   |using struct instead of     |Segfault on specialization
                   |template function.          |using struct instead of
                   |                            |template function.


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


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

* [Bug c++/34089] [4.1/4.2/4.3 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
  2007-11-15  4:39 ` [Bug c++/34089] [4.1/4.2/4.3 regression] " bangerth at dealii dot org
@ 2007-11-19  3:50 ` pinskia at gcc dot gnu dot org
  2007-11-19 16:55 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-19  3:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-11-19 03:50 -------
With checking enabled, we get:
t.cc:2: internal compiler error: tree check: expected record_type or union_type
or qual_union_type, have lang_type in xref_basetypes, at cp/decl.c:10395
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.2.3


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


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

* [Bug c++/34089] [4.1/4.2/4.3 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
  2007-11-15  4:39 ` [Bug c++/34089] [4.1/4.2/4.3 regression] " bangerth at dealii dot org
  2007-11-19  3:50 ` pinskia at gcc dot gnu dot org
@ 2007-11-19 16:55 ` jakub at gcc dot gnu dot org
  2007-11-20 16:20 ` [Bug c++/34089] [4.1/4.2 " jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-19 16:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2007-11-19 16:55 -------
Testing a fix.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-11-15 04:38:59         |2007-11-19 16:55:01
               date|                            |


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


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

* [Bug c++/34089] [4.1/4.2/4.3 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
                   ` (3 preceding siblings ...)
  2007-11-20 16:20 ` [Bug c++/34089] [4.1/4.2 " jakub at gcc dot gnu dot org
@ 2007-11-20 16:20 ` jakub at gcc dot gnu dot org
  2008-02-01 17:01 ` [Bug c++/34089] [4.1/4.2 " jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-20 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2007-11-20 16:19 -------
Subject: Bug 34089

Author: jakub
Date: Tue Nov 20 16:19:40 2007
New Revision: 130316

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130316
Log:
        PR c++/34089
        * parser.c (cp_parser_class_head): Reject function template ids.

        * g++.dg/template/crash74.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash74.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/34089] [4.1/4.2 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
                   ` (2 preceding siblings ...)
  2007-11-19 16:55 ` jakub at gcc dot gnu dot org
@ 2007-11-20 16:20 ` jakub at gcc dot gnu dot org
  2007-11-20 16:20 ` [Bug c++/34089] [4.1/4.2/4.3 " jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-20 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2007-11-20 16:20 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3 regression]    |[4.1/4.2 regression]
                   |Segfault on specialization  |Segfault on specialization
                   |using struct instead of     |using struct instead of
                   |template function.          |template function.


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


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

* [Bug c++/34089] [4.1/4.2 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
                   ` (4 preceding siblings ...)
  2007-11-20 16:20 ` [Bug c++/34089] [4.1/4.2/4.3 " jakub at gcc dot gnu dot org
@ 2008-02-01 17:01 ` jsm28 at gcc dot gnu dot org
  2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2008-02-01 16:55 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.3                       |4.2.4


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


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

* [Bug c++/34089] [4.1/4.2 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
                   ` (5 preceding siblings ...)
  2008-02-01 17:01 ` [Bug c++/34089] [4.1/4.2 " jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
  2008-07-04 22:53 ` [Bug c++/34089] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-31  0:38 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2008-05-19 20:23 -------
4.2.4 is being released, changing milestones to 4.2.5.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.4                       |4.2.5


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


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

* [Bug c++/34089] [4.2 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
                   ` (6 preceding siblings ...)
  2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
@ 2008-07-04 22:53 ` jsm28 at gcc dot gnu dot org
  2009-03-31  0:38 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jsm28 at gcc dot gnu dot org  2008-07-04 22:53 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression]        |[4.2 regression] Segfault on
                   |Segfault on specialization  |specialization using struct
                   |using struct instead of     |instead of template
                   |template function.          |function.


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


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

* [Bug c++/34089] [4.2 regression] Segfault on specialization using struct instead of template function.
  2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
                   ` (7 preceding siblings ...)
  2008-07-04 22:53 ` [Bug c++/34089] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-31  0:38 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31  0:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jsm28 at gcc dot gnu dot org  2009-03-31 00:38 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.1.2 4.2.0 4.0.4           |4.1.2 4.2.0 4.0.4 4.2.5
      Known to work|3.4.6                       |3.4.6 4.3.0
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-03-31  0:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-13 23:40 [Bug c++/34089] New: Segfault on specialization using struct instead of template function drahflow at gmx dot de
2007-11-15  4:39 ` [Bug c++/34089] [4.1/4.2/4.3 regression] " bangerth at dealii dot org
2007-11-19  3:50 ` pinskia at gcc dot gnu dot org
2007-11-19 16:55 ` jakub at gcc dot gnu dot org
2007-11-20 16:20 ` [Bug c++/34089] [4.1/4.2 " jakub at gcc dot gnu dot org
2007-11-20 16:20 ` [Bug c++/34089] [4.1/4.2/4.3 " jakub at gcc dot gnu dot org
2008-02-01 17:01 ` [Bug c++/34089] [4.1/4.2 " jsm28 at gcc dot gnu dot org
2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:53 ` [Bug c++/34089] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31  0:38 ` jsm28 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).