Testcase:
int f(void)
static __typeof(f) __gthrw_f __attribute__ ((__weakref__("f")));
----

ICE:
t.c:2: error: storage class specified for parameter ‘__gthrw_f’
t.c:2: internal compiler error: tree check: expected tree that contains ‘decl
with visibility’ structure, have ‘parm_decl’  in handle_weakref_attribute, at
c-common.c:4832
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE on invalid code with weakref
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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

Reply via email to