This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/4202: position of __declspec(dllexport) can cause ICE



>Number:         4202
>Category:       c++
>Synopsis:       position of __declspec(dllexport) can cause ICE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 01 19:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jcgregorio@computer.org
>Release:        unknown-1.0
>Organization:
>Environment:
Reading specs from /usr/lib/gcc-lib/i586-pc-cygwin/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --prefix=/usr --with-enabled-gettext --enable-sjlj-exceptions --enable-languages=c,c++
Thread model: single
gcc version 3.0.1
>Description:
When compiling the attached code an internal compiler error is generated:

g++ -v --save-temps example5.cpp
Reading specs from /usr/lib/gcc-lib/i586-pc-cygwin/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --prefix=/usr --with-enabled-gettext --enable-sjlj-exceptions --enable-languages=c,c++
Thread model: single
gcc version 3.0.1
 /usr/lib/gcc-lib/i586-pc-cygwin/3.0.1/cpp0.exe -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -D_X86_=1 -D_X86_=1 -Asystem=winnt -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/local/include -idirafter /usr/include -idirafter /usr/include/w32api example5.cpp example5.ii
ignoring nonexistent directory "/usr/local/include"
GNU CPP version 3.0.1 (cpplib) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++-v3
 /usr/include/g++-v3/i586-pc-cygwin
 /usr/include/g++-v3/backward
 /usr/lib/gcc-lib/i586-pc-cygwin/3.0.1/include
 /usr/include
 /usr/include/w32api
End of search list.
 /usr/lib/gcc-lib/i586-pc-cygwin/3.0.1/cc1plus.exe -fpreprocessed example5.ii -quiet -dumpbase example5.cpp -version -o example5.s
GNU CPP version 3.0.1 (cpplib) (80386, BSD syntax)
GNU C++ version 3.0.1 (i586-pc-cygwin)
	compiled by GNU C version 3.0.1.
example5.cpp:7: Internal compiler error in tree_low_cst, at tree.c:3462
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:

>Fix:
The crash can be avoided by moving the __declspec(dllexport)
to the beginning of each declaration.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="example5.ii"; name="example5.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="example5.ii"

IyAxICJleGFtcGxlNS5jcHAiCmNsYXNzIF9fYXR0cmlidXRlX18oKGRsbGV4cG9ydCkpIEJhc2Ug
ewoKfTsKCgp0ZW1wbGF0ZSA8Y2xhc3MgVD4KY2xhc3MgX19hdHRyaWJ1dGVfXygoZGxsZXhwb3J0
KSkgQSA6IHB1YmxpYyBCYXNlIHsKCn07Cg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]