This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/366: gcc gives "Internal compiler error" in minGW port if __attribute__((dllimport)) put on fcn definition
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/366: gcc gives "Internal compiler error" in minGW port if __attribute__((dllimport)) put on fcn definition
- From: jph at us dot ibm dot com
- Date: 30 Jun 2000 15:21:24 -0000
- Reply-To: jph at us dot ibm dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, jph@us.ibm.com
>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: