public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28560]  New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter
@ 2006-07-31 21:57 reichelt at gcc dot gnu dot org
  2006-07-31 22:13 ` [Bug c++/28560] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-31 21:57 UTC (permalink / raw)
  To: gcc-bugs

The following (probably valid) code snippet triggers an ICE since GCC 3.1:

======================================================================
template<typename> struct A {};

template<int> struct B;

template<int N> struct C : A<typename B<N>::X __attribute__((unused))> {};
======================================================================

bug.cc:5: internal compiler error: in layout_type, at stor-layout.c:1851
Please submit a full bug report, [etc.]

A similar code snippet causes a segfault:

======================================================================
template<typename> struct A {};

template<int> struct B;

template<> struct A<B<0> __attribute__((unused))> {};
======================================================================


-- 
           Summary: [4.0/4.1/4.2 regression] Trouble with __attribute__ in
                    template parameter
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-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=28560


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

end of thread, other threads:[~2008-01-28 15:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
2006-07-31 22:13 ` [Bug c++/28560] " pinskia at gcc dot gnu dot org
2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
2006-08-22 20:42 ` jason at gcc dot gnu dot org
2007-11-01 21:58 ` [Bug c++/28560] [4.0/4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
2007-11-02 13:50 ` jason at gcc dot gnu dot org
2008-01-13 15:45 ` [Bug c++/28560] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
2008-01-23  6:31 ` jason at gcc dot gnu dot org
2008-01-23  8:53 ` [Bug c++/28560] [4.1/4.2 " jakub at gcc dot gnu dot org
2008-01-28 16:28 ` 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).