The following code snippet (I'm not sure whether it's valid or not) triggers an ICE since GCC 3.1:
=============================================== struct A {}; A *p = new A __attribute__((unused)); =============================================== bug.cc:7: internal compiler error: in build_base_path, at cp/class.c:274 Please submit a full bug report, [etc.] -- Summary: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ 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=28558