public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35075]  New: [4.3 regression] ICE with references in templates
@ 2008-02-04 13:26 reichelt at gcc dot gnu dot org
  2008-02-04 13:27 ` [Bug c++/35075] " reichelt at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-04 13:26 UTC (permalink / raw)
  To: gcc-bugs

The following (IMHO invalid) code snippet triggers an ICE since GCC 4.0.0:

==========================================
template<int&> struct A {};

template<typename T> struct B
{
  static const T t;
  A<t> a;
};

B<int&> b;
==========================================

bug.cc: In instantiation of 'B<int&>':
bug.cc:9:   instantiated from here
bug.cc:6: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'indirect_ref' in decl_linkage, at
cp/tree.c:2502
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with references in templates
           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=35075


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

end of thread, other threads:[~2009-11-13 14:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 13:26 [Bug c++/35075] New: [4.3 regression] ICE with references in templates reichelt at gcc dot gnu dot org
2008-02-04 13:27 ` [Bug c++/35075] " reichelt at gcc dot gnu dot org
2008-02-04 13:40 ` [Bug c++/35075] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
2008-07-04 22:32 ` [Bug c++/35075] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-02-02  1:58 ` paolo dot carlini at oracle dot com
2009-03-31 20:19 ` [Bug c++/35075] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
2009-08-04 12:55 ` paolo dot carlini at oracle dot com
2009-08-04 16:43 ` paolo dot carlini at oracle dot com
2009-08-04 16:51 ` paolo dot carlini at oracle dot com
2009-11-13  6:02 ` jason at gcc dot gnu dot org
2009-11-13 14:41 ` jason at gcc dot gnu dot org
2009-11-13 14:42 ` jason 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).