public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage
@ 2011-12-23 23:47 pashev.igor at gmail dot com
2011-12-23 23:48 ` [Bug preprocessor/51670] " pashev.igor at gmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-23 23:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
Bug #: 51670
Summary: [4.7.0] conflicts with new declaration with 'C++'
linkage
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pashev.igor@gmail.com
Created attachment 26174
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26174
Build log
G++ 4.7.0 (trunk from 20111219) compiler doesn't work on Solaris
(x86_64-pc-solaris2.11).
But G++ 4.6.2 does.
Steps to reproduce:
# /usr/gcc/4.7/bin/g++ test.cpp -o test # FAIL
# /usr/gcc/4.6/bin/g++ -m64 test.cpp -o test # WIN
Build log is attached. Trivial test program and preprocessed files are below.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
2011-12-23 23:48 ` [Bug preprocessor/51670] " pashev.igor at gmail dot com
@ 2011-12-23 23:48 ` pashev.igor at gmail dot com
2011-12-23 23:49 ` pashev.igor at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-23 23:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
--- Comment #1 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-23 23:47:20 UTC ---
Created attachment 26175
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26175
Trivial test program
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
@ 2011-12-23 23:48 ` pashev.igor at gmail dot com
2011-12-23 23:48 ` pashev.igor at gmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-23 23:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
--- Comment #2 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-23 23:48:01 UTC ---
Created attachment 26176
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26176
/usr/gcc/4.6/bin/g++ -m64 -E test.cpp -o test.46
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
2011-12-23 23:48 ` [Bug preprocessor/51670] " pashev.igor at gmail dot com
2011-12-23 23:48 ` pashev.igor at gmail dot com
@ 2011-12-23 23:49 ` pashev.igor at gmail dot com
2011-12-23 23:51 ` pashev.igor at gmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-23 23:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
--- Comment #3 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-23 23:48:35 UTC ---
Created attachment 26177
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26177
/usr/gcc/4.7/bin/g++ -E test.cpp -o test.47
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
` (2 preceding siblings ...)
2011-12-23 23:49 ` pashev.igor at gmail dot com
@ 2011-12-23 23:51 ` pashev.igor at gmail dot com
2011-12-23 23:53 ` pashev.igor at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-23 23:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
--- Comment #4 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-23 23:49:12 UTC ---
Created attachment 26178
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26178
Diff of test.46 and test.47
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
` (3 preceding siblings ...)
2011-12-23 23:51 ` pashev.igor at gmail dot com
@ 2011-12-23 23:53 ` pashev.igor at gmail dot com
2011-12-24 0:27 ` [Bug target/51670] " pinskia at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-23 23:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
--- Comment #5 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-23 23:51:31 UTC ---
Sorry, GCC 4.7 is installed in /usr, not in /usr/gcc/4.7
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
` (4 preceding siblings ...)
2011-12-23 23:53 ` pashev.igor at gmail dot com
@ 2011-12-24 0:27 ` pinskia at gcc dot gnu.org
2011-12-24 3:08 ` pashev.igor at gmail dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-24 0:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Target| |x86_64-pc-solaris2.11
Component|preprocessor |target
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-23 23:53:05 UTC ---
This looks like a bug in Solaris's headers.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
` (5 preceding siblings ...)
2011-12-24 0:27 ` [Bug target/51670] " pinskia at gcc dot gnu.org
@ 2011-12-24 3:08 ` pashev.igor at gmail dot com
2011-12-24 10:17 ` marc.glisse at normalesup dot org
2011-12-24 19:17 ` pashev.igor at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-24 3:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
--- Comment #7 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-24 00:27:10 UTC ---
Created attachment 26179
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26179
Diff of macros
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
` (6 preceding siblings ...)
2011-12-24 3:08 ` pashev.igor at gmail dot com
@ 2011-12-24 10:17 ` marc.glisse at normalesup dot org
2011-12-24 19:17 ` pashev.igor at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-12-24 10:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
Marc Glisse <marc.glisse at normalesup dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.glisse at normalesup
| |dot org
--- Comment #8 from Marc Glisse <marc.glisse at normalesup dot org> 2011-12-24 09:40:54 UTC ---
This is supposed to be handled by fixinclude in the solaris_cxx_linkage rule.
Can you try and see why it isn't applied?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/51670] [4.7.0] conflicts with new declaration with 'C++' linkage
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
` (7 preceding siblings ...)
2011-12-24 10:17 ` marc.glisse at normalesup dot org
@ 2011-12-24 19:17 ` pashev.igor at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: pashev.igor at gmail dot com @ 2011-12-24 19:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51670
Igor Pashev <pashev.igor at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #9 from Igor Pashev <pashev.igor at gmail dot com> 2011-12-24 18:39:49 UTC ---
(In reply to comment #8)
> This is supposed to be handled by fixinclude in the solaris_cxx_linkage rule.
> Can you try and see why it isn't applied?
Well, I'm a little confused.
Directory /usr/lib/gcc/x86_64-pc-solaris2.11/4.7/include-fixed was mostly
empty.
I run /usr/lib/gcc/x86_64-pc-solaris2.11/4.7/install-tools/mkheaders, and now
that directory is full on fixed headers.
Now g++ does work.
BTW GCC 4.6.2 in Solaris ships all possible fixed headers :-\
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-12-24 18:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-23 23:47 [Bug preprocessor/51670] New: [4.7.0] conflicts with new declaration with 'C++' linkage pashev.igor at gmail dot com
2011-12-23 23:48 ` [Bug preprocessor/51670] " pashev.igor at gmail dot com
2011-12-23 23:48 ` pashev.igor at gmail dot com
2011-12-23 23:49 ` pashev.igor at gmail dot com
2011-12-23 23:51 ` pashev.igor at gmail dot com
2011-12-23 23:53 ` pashev.igor at gmail dot com
2011-12-24 0:27 ` [Bug target/51670] " pinskia at gcc dot gnu.org
2011-12-24 3:08 ` pashev.igor at gmail dot com
2011-12-24 10:17 ` marc.glisse at normalesup dot org
2011-12-24 19:17 ` pashev.igor at gmail dot com
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).