public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18479] __attribute__ ((visibility("default"))) in C causes internal compiler error
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
@ 2004-11-14 17:38 ` s_gccbugzilla at nedprod dot com
2004-11-14 17:40 ` [Bug c/18479] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: s_gccbugzilla at nedprod dot com @ 2004-11-14 17:38 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error
@ 2004-11-14 17:38 s_gccbugzilla at nedprod dot com
2004-11-14 17:38 ` [Bug c/18479] " s_gccbugzilla at nedprod dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: s_gccbugzilla at nedprod dot com @ 2004-11-14 17:38 UTC (permalink / raw)
To: gcc-bugs
Using GCC v4.0_20041107 on FreeBSD v5.3:
struct __attribute__ ((visibility("default"))) Foo { int foo; };
int main(void) { Foo foo; return 0; }
If compiled as a C++ file, all is fine. If compiled as C you get:
internal compiler error: tree check: expected class 'declaration', have
'exceptional' (identifier_node) in handle_visibility_attribute, at c-common.c:
4648
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I think it's perfectly valid for C code to mark structures as having visibility
though it means nothing useful (so it could simply be ignored). It certainly
shouldn't generate an internal compiler error.
Cheers,
Niall
--
Summary: __attribute__ ((visibility("default"))) in C causes
internal compiler error
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: s_gccbugzilla at nedprod dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/18479] [4.0 Regression] __attribute__ ((visibility("default"))) in C causes internal compiler error
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
2004-11-14 17:38 ` [Bug c/18479] " s_gccbugzilla at nedprod dot com
@ 2004-11-14 17:40 ` pinskia at gcc dot gnu dot org
2004-11-26 0:52 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-14 17:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-14 17:40 -------
: Search converges between 2004-07-21-trunk (#492) and 2004-07-23-trunk (#493).
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2004-11-14 17:40:55
date| |
Summary|__attribute__ |[4.0 Regression]
|((visibility("default"))) in|__attribute__
|C causes internal compiler |((visibility("default"))) in
|error |C causes internal compiler
| |error
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/18479] [4.0 Regression] __attribute__ ((visibility("default"))) in C causes internal compiler error
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
2004-11-14 17:38 ` [Bug c/18479] " s_gccbugzilla at nedprod dot com
2004-11-14 17:40 ` [Bug c/18479] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-26 0:52 ` pinskia at gcc dot gnu dot org
2004-11-26 0:55 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-26 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-26 00:52 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02206.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/18479] [4.0 Regression] __attribute__ ((visibility("default"))) in C causes internal compiler error
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
` (2 preceding siblings ...)
2004-11-26 0:52 ` pinskia at gcc dot gnu dot org
@ 2004-11-26 0:55 ` pinskia at gcc dot gnu dot org
2004-11-29 23:11 ` pinskia at gcc dot gnu dot org
2004-11-29 23:11 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-26 0:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-26 00:55 -------
Mine.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/18479] [4.0 Regression] __attribute__ ((visibility("default"))) in C causes internal compiler error
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
` (4 preceding siblings ...)
2004-11-29 23:11 ` pinskia at gcc dot gnu dot org
@ 2004-11-29 23:11 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-29 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-29 23:11 -------
Subject: Bug 18479
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-11-29 23:11:30
Modified files:
gcc : ChangeLog c-common.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr18479.c
Log message:
2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18479
* gcc.dg/pr18479.c: New test.
2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18479
* c-common.c (handle_visibility_attribute): When the type decl
is really a identifier node, warn about being ignored and return.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6631&r2=2.6632
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.588&r2=1.589
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4685&r2=1.4686
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr18479.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/18479] [4.0 Regression] __attribute__ ((visibility("default"))) in C causes internal compiler error
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
` (3 preceding siblings ...)
2004-11-26 0:55 ` pinskia at gcc dot gnu dot org
@ 2004-11-29 23:11 ` pinskia at gcc dot gnu dot org
2004-11-29 23:11 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-29 23:11 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-11-29 23:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-14 17:38 [Bug c++/18479] New: __attribute__ ((visibility("default"))) in C causes internal compiler error s_gccbugzilla at nedprod dot com
2004-11-14 17:38 ` [Bug c/18479] " s_gccbugzilla at nedprod dot com
2004-11-14 17:40 ` [Bug c/18479] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-26 0:52 ` pinskia at gcc dot gnu dot org
2004-11-26 0:55 ` pinskia at gcc dot gnu dot org
2004-11-29 23:11 ` pinskia at gcc dot gnu dot org
2004-11-29 23:11 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).