public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48166] New: ICE on static member function with invalid type qualifier
@ 2011-03-17 12:53 martin.kronbichler at it dot uu.se
  2011-03-17 13:19 ` [Bug c++/48166] [4.6/4.7 Regression] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: martin.kronbichler at it dot uu.se @ 2011-03-17 12:53 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE on static member function with invalid type
                    qualifier
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: martin.kronbichler@it.uu.se


Using gcc version 4.6.0 20110317 (svn revision 171087) on x86-64 Linux with the
code

struct foo {
  static void func ();
};
void foo::func () const {};

and compile line "g++ -c test_static.cc" gives the following:

test_static.cc:4:19: internal compiler error: in merge_types, at
cp/typeck.c:825
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The code is clearly invalid (g++ 4.5 indeed gives the following error message:
"test_static.cc:4:19: error: static member function ‘void foo::func()’ declared
with type qualifiers"), but g++ 4.6 returns with an ICE.


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

end of thread, other threads:[~2011-03-29 16:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
2011-03-17 13:19 ` [Bug c++/48166] [4.6/4.7 Regression] " redi at gcc dot gnu.org
2011-03-17 13:29 ` rguenth at gcc dot gnu.org
2011-03-17 13:31 ` jakub at gcc dot gnu.org
2011-03-17 14:25 ` jason at gcc dot gnu.org
2011-03-17 16:05 ` jason at gcc dot gnu.org
2011-03-25 19:54 ` jakub at gcc dot gnu.org
2011-03-29 16:23 ` jason at gcc dot gnu.org
2011-03-29 16:32 ` jason at gcc dot gnu.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).