The following causes ICE on windows targets on mainline. void foo (int __attribute__ ((dllimport)) bar);
dllimp_parm.c:1: internal compiler error: tree check: expected tree that contains 'decl with visibility' structure, have 'parm_decl' in handle_dll_attribute, at tree.c:3762 Please submit a full bug report, I believe this is a regression from 3.4.5, but that is only because tree check now picks up the bug. -- Summary: [4.2.0 regression] ICE with invalid dllimport attribute Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-checking Severity: normal Priority: P3 Component: target AssignedTo: dannysmith at users dot sourceforge dot net ReportedBy: dannysmith at users dot sourceforge dot net GCC host triplet: i386-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28648