This is the mail archive of the gcc-prs@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/366: gcc gives "Internal compiler error" in minGW port if __attribute__((dllimport)) put on fcn definition



>Number:         366
>Category:       c
>Synopsis:       gcc gives "Internal compiler error" in minGW port if __attribute__((dllimport)) put on fcn definition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 30 08:26:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jim Hennessy
>Release:        GNU C version 2.95.2 19991024 (release) (i386-mingw32msvc) compiled by GNU C version 2.95.2 19991024 (release).
>Organization:
>Environment:
Windows 2000, using the minGW port of GCC from http://www.mingw.org
>Description:
Due to a header file error, I accidentally tried to compile 
C code that used the __attribute__((dllimport)) specification
on a function definition.  Instead of reporting an error,
though, the compiler failed with an "Internal compiler error".

>How-To-Repeat:
The error is easy to reproduce:  Just compile the following
code:  gcc foo.c

Here's foo.c:
-------------
__attribute__((dllimport)) int foo(void) {return 5;}
>Fix:
I fixed my problem by noticing the wrong attribute and doing 
it correctly!
>Release-Note:
>Audit-Trail:
>Unformatted:

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