[Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


[Bug c++/37789] [4.4 regression] ICE with __FUNCTION__

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--

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


[Bug c++/37789] [4.4 regression] ICE with __FUNCTION__

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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


[Bug c++/37789] [4.4 regression] ICE with __FUNCTION__

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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


[Bug c++/37789] [4.4 regression] ICE with __FUNCTION__

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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

LightInTheBox - Buy quality products at wholesale price!