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

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