public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37789]  New: [4.4 regression] ICE with __FUNCTION__
@ 2008-10-09 21:03 reichelt at gcc dot gnu dot org
  2008-10-09 21:03 ` [Bug c++/37789] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-10-09 21:03 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

===================
void foo():
{
  __FUNCTION__;
}
===================

bug.cc: In function 'void foo()':
bug.cc:2: error: only constructors take base initializers
bug.cc:2: error: expected identifier before '{' token
bug.cc:2: warning: extended initializer lists only available with -std=c++0x or
-std=gnu++0x
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

The regression was introduced between 2008-06-26 and 2008-07-05.


-- 
           Summary: [4.4 regression] ICE with __FUNCTION__
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
@ 2008-10-09 21:03 ` reichelt at gcc dot gnu dot org
  2008-10-10  7:41 ` dodji at seketeli dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-10-09 21:03 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
  2008-10-09 21:03 ` [Bug c++/37789] " reichelt at gcc dot gnu dot org
@ 2008-10-10  7:41 ` dodji at seketeli dot org
  2008-10-10 13:20 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dodji at seketeli dot org @ 2008-10-10  7:41 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]



------- Comment #1 from dodji at seketeli dot org  2008-10-10 07:40 -------
Subject: Re:   New: [4.4 regression] ICE with __FUNCTION__

reichelt at gcc dot gnu dot org a écrit :

[...]

I can't reproduce this on trunk's revision 140900


-- 


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
  2008-10-09 21:03 ` [Bug c++/37789] " reichelt at gcc dot gnu dot org
  2008-10-10  7:41 ` dodji at seketeli dot org
@ 2008-10-10 13:20 ` jakub at gcc dot gnu dot org
  2008-10-12 23:09 ` reichelt 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 @ 2008-10-10 13:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-10-10 13:18 -------
I can, note the : before function body.  That said, P4 as it is only an
error-recovery bug.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-10-10 13:20 ` jakub at gcc dot gnu dot org
@ 2008-10-12 23:09 ` reichelt at gcc dot gnu dot org
  2009-02-23  0:00 ` hjl dot tools at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-10-12 23:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2008-10-12 23:08 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-12 23:08:21
               date|                            |


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-10-12 23:09 ` reichelt at gcc dot gnu dot org
@ 2009-02-23  0:00 ` hjl dot tools at gmail dot com
  2009-02-23 17:39 ` hjl dot tools at gmail dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-23  0:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hjl dot tools at gmail dot com  2009-02-22 23:59 -------
Created an attachment (id=17345)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17345&action=view)
A patch


-- 


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-02-23  0:00 ` hjl dot tools at gmail dot com
@ 2009-02-23 17:39 ` hjl dot tools at gmail dot com
  2009-02-26 19:36 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-23 17:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl dot tools at gmail dot com  2009-02-23 17:39 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01073.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2009-
                   |                            |02/msg01073.html


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-02-23 17:39 ` hjl dot tools at gmail dot com
@ 2009-02-26 19:36 ` hjl dot tools at gmail dot com
  2009-02-26 20:00 ` hjl at gcc dot gnu dot org
  2009-02-26 20:01 ` hjl dot tools at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-26 19:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl dot tools at gmail dot com  2009-02-26 19:36 -------
Jason, can you review the patch at

http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01073.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-02-26 19:36 ` hjl dot tools at gmail dot com
@ 2009-02-26 20:00 ` hjl at gcc dot gnu dot org
  2009-02-26 20:01 ` hjl dot tools at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-02-26 20:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hjl at gcc dot gnu dot org  2009-02-26 19:59 -------
Subject: Bug 37789

Author: hjl
Date: Thu Feb 26 19:59:38 2009
New Revision: 144451

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144451
Log:
gcc/cp

2009-02-26  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/37789
        * parser.c (cp_parser_mem_initializer): Return error_mark_node
        if cp_parser_mem_initializer_id returns error_mark_node.

gcc/testsuite/

2009-02-26  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/37789
        * other/pr37789.C: New.

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


-- 


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


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

* [Bug c++/37789] [4.4 regression] ICE with __FUNCTION__
  2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-02-26 20:00 ` hjl at gcc dot gnu dot org
@ 2009-02-26 20:01 ` hjl dot tools at gmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-26 20:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl dot tools at gmail dot com  2009-02-26 20:00 -------
Fixed.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-02-26 20:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-09 21:03 [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ reichelt at gcc dot gnu dot org
2008-10-09 21:03 ` [Bug c++/37789] " reichelt at gcc dot gnu dot org
2008-10-10  7:41 ` dodji at seketeli dot org
2008-10-10 13:20 ` jakub at gcc dot gnu dot org
2008-10-12 23:09 ` reichelt at gcc dot gnu dot org
2009-02-23  0:00 ` hjl dot tools at gmail dot com
2009-02-23 17:39 ` hjl dot tools at gmail dot com
2009-02-26 19:36 ` hjl dot tools at gmail dot com
2009-02-26 20:00 ` hjl at gcc dot gnu dot org
2009-02-26 20:01 ` hjl dot tools at gmail dot com

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).