public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47198] New: [4.5/4.6 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4654 on invalid code
@ 2011-01-07  1:26 zsojka at seznam dot cz
  2011-01-07  5:34 ` [Bug c++/47198] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-07  1:26 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.5/4.6 Regression] [C++0x] ICE: tree check: expected
                    var_decl or function_decl, have template_decl in
                    check_bases_and_members, at cp/class.c:4654 on invalid
                    code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


------ testcase.C ------
struct S
{
  template < int > sometype foo ();
  S () = default;
};
------------------------

Compiler output:
$ gcc -std=c++0x testcase.C 
testcase.C:3:20: error: 'sometype' does not name a type
testcase.C:1:8: internal compiler error: tree check: expected var_decl or
function_decl, have template_decl in check_bases_and_members, at
cp/class.c:4654
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r168535 - crash
4.5 r168062 - crash
4.4 r168062 - OK


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

end of thread, other threads:[~2011-03-11 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07  1:26 [Bug c++/47198] New: [4.5/4.6 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4654 on invalid code zsojka at seznam dot cz
2011-01-07  5:34 ` [Bug c++/47198] " hjl.tools at gmail dot com
2011-01-19 20:56 ` jakub at gcc dot gnu.org
2011-03-10 15:21 ` jason at gcc dot gnu.org
2011-03-11 14:35 ` [Bug c++/47198] [4.5 " 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).