public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31026]  New: ICE on invalid code
@ 2007-03-02 15:46 axel-freyn at gmx dot de
  2007-03-02 15:47 ` [Bug c++/31026] " axel-freyn at gmx dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: axel-freyn at gmx dot de @ 2007-03-02 15:46 UTC (permalink / raw)
  To: gcc-bugs

The invalid code (missing '{' in second line)
template <class T> class A{
  template <class T1> void B() (static_cast<void> (0)); }
};

creates an ICE with gcc-4.1.2:

crash.cc:2: internal compiler error: in grokfield, at cp/decl2.c:896


-- 
           Summary: ICE on invalid code
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: axel-freyn at gmx dot de
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


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


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

* [Bug c++/31026] ICE on invalid code
  2007-03-02 15:46 [Bug c++/31026] New: ICE on invalid code axel-freyn at gmx dot de
@ 2007-03-02 15:47 ` axel-freyn at gmx dot de
  2007-03-09  4:46 ` [Bug c++/31026] [4.1/4.2/4.3 regression] ICE on forgotten opening brace of function definition bangerth at dealii dot org
  2007-03-10 21:18 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: axel-freyn at gmx dot de @ 2007-03-02 15:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from axel-freyn at gmx dot de  2007-03-02 15:47 -------
Created an attachment (id=13134)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13134&action=view)
testcase


-- 


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


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

* [Bug c++/31026] [4.1/4.2/4.3 regression] ICE on forgotten opening brace of function definition
  2007-03-02 15:46 [Bug c++/31026] New: ICE on invalid code axel-freyn at gmx dot de
  2007-03-02 15:47 ` [Bug c++/31026] " axel-freyn at gmx dot de
@ 2007-03-09  4:46 ` bangerth at dealii dot org
  2007-03-10 21:18 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2007-03-09  4:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bangerth at dealii dot org  2007-03-09 04:46 -------
Confirmed. This is a regression introduced in gcc4.0.x. Since the
error message doesn't give any context except for the ICE, I rate this
as somewhat more than a nuisance.
W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.0.2 4.1.0
      Known to work|                            |2.95.3 3.2.3 3.3.6 3.4.6
   Last reconfirmed|0000-00-00 00:00:00         |2007-03-09 04:46:18
               date|                            |
            Summary|ICE on invalid code         |[4.1/4.2/4.3 regression] ICE
                   |                            |on forgotten opening brace
                   |                            |of function definition


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


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

* [Bug c++/31026] [4.1/4.2/4.3 regression] ICE on forgotten opening brace of function definition
  2007-03-02 15:46 [Bug c++/31026] New: ICE on invalid code axel-freyn at gmx dot de
  2007-03-02 15:47 ` [Bug c++/31026] " axel-freyn at gmx dot de
  2007-03-09  4:46 ` [Bug c++/31026] [4.1/4.2/4.3 regression] ICE on forgotten opening brace of function definition bangerth at dealii dot org
@ 2007-03-10 21:18 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-03-10 21:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2007-03-10 21:18 -------
I cannot reproduce it with GCC 4.1.2, but only with GCC 4.0.0 - 4.1.1.
IMHO it's a duplicate of PR 29730, which got fixed in December.



*** This bug has been marked as a duplicate of 29730 ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2007-03-10 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-02 15:46 [Bug c++/31026] New: ICE on invalid code axel-freyn at gmx dot de
2007-03-02 15:47 ` [Bug c++/31026] " axel-freyn at gmx dot de
2007-03-09  4:46 ` [Bug c++/31026] [4.1/4.2/4.3 regression] ICE on forgotten opening brace of function definition bangerth at dealii dot org
2007-03-10 21:18 ` 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).