public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33078] New: g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);}
@ 2007-08-15 12:38 room_debugs at outgesourced dot org
2007-08-15 12:39 ` [Bug c++/33078] " room_debugs at outgesourced dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: room_debugs at outgesourced dot org @ 2007-08-15 12:38 UTC (permalink / raw)
To: gcc-bugs
g++ --version
g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
on debian lenny i386; reproduced on sid amd64 too.
g++ -DUNIX_THREADING -D_THREAD_SAFE -D_REENTRANT -ggdb -Wall -DLINUX -D_POSIX_
SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -DUSE_STRCASECMP -DUSE_STRNCASECMP -g -pg
-c test1.cpp
test1.cpp:3: error: invalid use of 'static' in linkage specification
test1.cpp: In function 'void* CheckServerThread(void*)':
test1.cpp:8: error: 'void* CheckServerThread(void*)' was declared 'extern' and
later 'static'
test1.cpp:4: error: previous declaration of 'void* CheckServerThread(void*)'
--
Summary: g++ treats extern "c" static void foo(void); different
to extern "c" {static void foo(void);}
Product: gcc
Version: 4.1.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: room_debugs at outgesourced dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33078
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/33078] g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);}
2007-08-15 12:38 [Bug c++/33078] New: g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);} room_debugs at outgesourced dot org
@ 2007-08-15 12:39 ` room_debugs at outgesourced dot org
2007-08-15 12:40 ` room_debugs at outgesourced dot org
2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: room_debugs at outgesourced dot org @ 2007-08-15 12:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from room_debugs at outgesourced dot org 2007-08-15 12:39 -------
Created an attachment (id=14061)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14061&action=view)
simple test file failing
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33078
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/33078] g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);}
2007-08-15 12:38 [Bug c++/33078] New: g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);} room_debugs at outgesourced dot org
2007-08-15 12:39 ` [Bug c++/33078] " room_debugs at outgesourced dot org
@ 2007-08-15 12:40 ` room_debugs at outgesourced dot org
2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: room_debugs at outgesourced dot org @ 2007-08-15 12:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from room_debugs at outgesourced dot org 2007-08-15 12:40 -------
Created an attachment (id=14062)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14062&action=view)
same code with {}; and not failing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33078
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/33078] g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);}
2007-08-15 12:38 [Bug c++/33078] New: g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);} room_debugs at outgesourced dot org
2007-08-15 12:39 ` [Bug c++/33078] " room_debugs at outgesourced dot org
2007-08-15 12:40 ` room_debugs at outgesourced dot org
@ 2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-15 16:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-08-15 16:40 -------
This is on purpose.
*** This bug has been marked as a duplicate of 26068 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33078
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-15 16:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-15 12:38 [Bug c++/33078] New: g++ treats extern "c" static void foo(void); different to extern "c" {static void foo(void);} room_debugs at outgesourced dot org
2007-08-15 12:39 ` [Bug c++/33078] " room_debugs at outgesourced dot org
2007-08-15 12:40 ` room_debugs at outgesourced dot org
2007-08-15 16:40 ` pinskia 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).