public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28287]  New: [4.1/4.2 regression] ICE with misplaced attribute weak
@ 2006-07-06 16:48 reichelt at gcc dot gnu dot org
  2006-07-06 16:49 ` [Bug c/28287] " 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 @ 2006-07-06 16:48 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.1.0:

=============================================
void foo(int __attribute__((weak)));
=============================================

bug.c:1: error: weak declaration of '({anonymous})' must be public
bug.c:1: internal compiler error: tree check: expected tree that contains 'decl
with visibility' structure, have 'parm_decl'  in mark_weak, at varasm.c:4506
Please submit a full bug report, [etc.]

This happens with the C and C++ frontend.


-- 
           Summary: [4.1/4.2 regression] ICE with misplaced attribute weak
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=28287


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

end of thread, other threads:[~2008-07-04 15:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 16:48 [Bug c/28287] New: [4.1/4.2 regression] ICE with misplaced attribute weak reichelt at gcc dot gnu dot org
2006-07-06 16:49 ` [Bug c/28287] " reichelt at gcc dot gnu dot org
2006-07-17  3:09 ` mmitchel at gcc dot gnu dot org
2006-08-11 23:57 ` janis at gcc dot gnu dot org
2006-08-12  0:02 ` pinskia at gcc dot gnu dot org
2006-08-14 23:30 ` dannysmith at users dot sourceforge dot net
2006-08-15  0:45 ` patchapp at dberlin dot org
2006-08-15 16:11 ` jsm28 at gcc dot gnu dot org
2006-08-15 21:46 ` dannysmith at gcc dot gnu dot org
2006-08-15 21:48 ` dannysmith at users dot sourceforge dot net
2006-08-15 21:49 ` [Bug c/28287] [4.1 " dannysmith at users dot sourceforge dot net
2007-02-14  9:25 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:40 ` jsm28 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).