public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33969]  New: [4.2/4.3 regression] ICE with const and function pointer
@ 2007-11-01 12:15 reichelt at gcc dot gnu dot org
  2007-11-01 12:16 ` [Bug c++/33969] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-01 12:15 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.2.0:

==========================
struct A;
void (*A::* fp)() const;
==========================

bug.cc:2: internal compiler error: tree check: expected function_type or
method_type, have pointer_type in build_memfn_type, at cp/decl2.c:119
Please submit a full bug report, [etc.]

In GCC 4.0.x and 4.1.x we issued a proper diagnostic:
bug.cc:2: error: 'const' and 'volatile' function specifiers on 'fp' invalid in
variable declaration

Before that, the code was wrongly accepted.


-- 
           Summary: [4.2/4.3 regression] ICE with const and function pointer
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=33969


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

* [Bug c++/33969] [4.2/4.3 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
@ 2007-11-01 12:16 ` reichelt at gcc dot gnu dot org
  2007-11-01 14:25 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-01 12:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/33969] [4.2/4.3 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
  2007-11-01 12:16 ` [Bug c++/33969] " reichelt at gcc dot gnu dot org
@ 2007-11-01 14:25 ` jakub at gcc dot gnu dot org
  2007-11-05  3:19 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-01 14:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2007-11-01 14:25 -------
Testing fix.
The regression is since PR26912 fix commit.


-- 

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|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-11-01 14:25:09
               date|                            |


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


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

* [Bug c++/33969] [4.2/4.3 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
  2007-11-01 12:16 ` [Bug c++/33969] " reichelt at gcc dot gnu dot org
  2007-11-01 14:25 ` jakub at gcc dot gnu dot org
@ 2007-11-05  3:19 ` mmitchel at gcc dot gnu dot org
  2007-11-05  8:10 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-11-05  3:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/33969] [4.2/4.3 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-11-05  3:19 ` mmitchel at gcc dot gnu dot org
@ 2007-11-05  8:10 ` jakub at gcc dot gnu dot org
  2007-11-05  8:16 ` [Bug c++/33969] [4.2 " jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-05  8:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-11-05 08:10 -------
Subject: Bug 33969

Author: jakub
Date: Mon Nov  5 08:10:09 2007
New Revision: 129895

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129895
Log:
        PR c++/33969
        * decl.c (grokdeclarator): Don't call build_memfn_type if type
        is neither FUNCTION_TYPE nor METHOD_TYPE.

        * g++.dg/other/ptrmem9.C: New test.

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


-- 


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


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

* [Bug c++/33969] [4.2 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-11-05  8:10 ` jakub at gcc dot gnu dot org
@ 2007-11-05  8:16 ` jakub at gcc dot gnu dot org
  2008-02-01 17:01 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-05  8:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2007-11-05 08:16 -------
Fixed on the trunk so far.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.3.0
            Summary|[4.2/4.3 regression] ICE    |[4.2 regression] ICE with
                   |with const and function     |const and function pointer
                   |pointer                     |


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


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

* [Bug c++/33969] [4.2 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-11-05  8:16 ` [Bug c++/33969] [4.2 " jakub at gcc dot gnu dot org
@ 2008-02-01 17:01 ` jsm28 at gcc dot gnu dot org
  2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
  2009-03-31  0:37 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 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=33969


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

* [Bug c++/33969] [4.2 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-02-01 17:01 ` jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
  2009-03-31  0:37 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 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=33969


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

* [Bug c++/33969] [4.2 regression] ICE with const and function pointer
  2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
@ 2009-03-31  0:37 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31  0:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2009-03-31 00:37 -------
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.2.3                       |4.2.3 4.2.5
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-01 12:15 [Bug c++/33969] New: [4.2/4.3 regression] ICE with const and function pointer reichelt at gcc dot gnu dot org
2007-11-01 12:16 ` [Bug c++/33969] " reichelt at gcc dot gnu dot org
2007-11-01 14:25 ` jakub at gcc dot gnu dot org
2007-11-05  3:19 ` mmitchel at gcc dot gnu dot org
2007-11-05  8:10 ` jakub at gcc dot gnu dot org
2007-11-05  8:16 ` [Bug c++/33969] [4.2 " jakub at gcc dot gnu dot org
2008-02-01 17:01 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:35 ` jsm28 at gcc dot gnu dot org
2009-03-31  0:37 ` 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).