#include <stdio.h>

    class __declspec(dllexport) A {};

int main(int argc, char *argv[]) {

    return 0;
}

$ gcc testcase.cpp
testcase.cpp:3: internal compiler error: tree check: expected function_decl,
hav
e type_decl in handle_dll_attribute, at tree.c:4172
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
           Summary: ICE during procesing class attributes
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: piotr dot wyderski at gmail dot com
  GCC host triplet: Cygwin/GCC-trunk rev. 147886


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

Reply via email to