public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35098]  New: [4.1/4.24.3 regression] ICE with attribute unused in template
@ 2008-02-06  7:43 reichelt at gcc dot gnu dot org
  2008-02-06  7:43 ` [Bug c++/35098] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-06  7:43 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE since GCC 3.4.0:

===========================================================
template<typename T> struct A
{
  T a, __attribute((unused)) b;
};
===========================================================

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

Without the variable 'a' I get a warning (which is missing in the case above):
bug.cc:3: warning: 'unused' attribute ignored


-- 
           Summary: [4.1/4.24.3 regression] ICE with attribute unused in
                    template
           Product: gcc
           Version: 4.3.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=35098


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

end of thread, other threads:[~2008-03-14 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06  7:43 [Bug c++/35098] New: [4.1/4.24.3 regression] ICE with attribute unused in template reichelt at gcc dot gnu dot org
2008-02-06  7:43 ` [Bug c++/35098] [4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
2008-02-06 12:26 ` rguenth at gcc dot gnu dot org
2008-03-14 17:09 ` [Bug c++/35098] " rguenth 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).