* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
@ 2012-01-12 9:23 ` rguenth at gcc dot gnu.org
2012-01-12 10:54 ` d.g.gorbachev at gmail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-12 9:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-12 09:23:03 UTC ---
I can't reproduce this.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
2012-01-12 9:23 ` [Bug c++/51827] " rguenth at gcc dot gnu.org
@ 2012-01-12 10:54 ` d.g.gorbachev at gmail dot com
2012-01-16 15:52 ` paolo.carlini at oracle dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-01-12 10:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #2 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-01-12 10:53:44 UTC ---
I already mentioned "PCH" and ".H" extension, but just to be 100% clear, the
error happens only when compiling the testcase as a c++ header.
Reproduced on i686-pc-linux-gnu and i686-pc-mingw32.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
2012-01-12 9:23 ` [Bug c++/51827] " rguenth at gcc dot gnu.org
2012-01-12 10:54 ` d.g.gorbachev at gmail dot com
@ 2012-01-16 15:52 ` paolo.carlini at oracle dot com
2012-01-16 17:05 ` d.g.gorbachev at gmail dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-16 15:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-16 15:31:15 UTC ---
I can reproduce the error, for the snippet as a .H, but then, -fabi-version=6
avoids it, as expected. Thus I don't see where is the issue.
Jason shall we close this?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (2 preceding siblings ...)
2012-01-16 15:52 ` paolo.carlini at oracle dot com
@ 2012-01-16 17:05 ` d.g.gorbachev at gmail dot com
2012-01-16 17:08 ` paolo.carlini at oracle dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-01-16 17:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #4 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-01-16 16:54:43 UTC ---
> Thus I don't see where is the issue.
The issue is a rather confusing error message. It looks as if there was a
compiler bug.
> shall we close this?
Somebody can report it again...
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (3 preceding siblings ...)
2012-01-16 17:05 ` d.g.gorbachev at gmail dot com
@ 2012-01-16 17:08 ` paolo.carlini at oracle dot com
2012-01-16 18:23 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-16 17:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-16 17:05:03 UTC ---
What's confusing about it, I don't understand. Doesn't '-fabi-version=6' fix it
for you?!? And, by the way, *closing* doesn't mean disintegrating it, would
remain in Bugzilla, for sure.
Unless, there is something *else* entirely about it, like we want to accept it
also without '-fabi-version=6', that's why I asked Jason.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (4 preceding siblings ...)
2012-01-16 17:08 ` paolo.carlini at oracle dot com
@ 2012-01-16 18:23 ` jason at gcc dot gnu.org
2012-01-16 18:25 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-16 18:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-16 18:12:10 UTC ---
This should work without -fabi-version=6.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (5 preceding siblings ...)
2012-01-16 18:23 ` jason at gcc dot gnu.org
@ 2012-01-16 18:25 ` paolo.carlini at oracle dot com
2012-01-16 18:40 ` d.g.gorbachev at gmail dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-16 18:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-16
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (6 preceding siblings ...)
2012-01-16 18:25 ` paolo.carlini at oracle dot com
@ 2012-01-16 18:40 ` d.g.gorbachev at gmail dot com
2012-01-16 18:55 ` [Bug c++/51827] [4.7 regression] " jason at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2012-01-16 18:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #7 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-01-16 18:28:20 UTC ---
(In reply to comment #5)
> What's confusing about it, I don't understand.
There are two errors and notes, all pointing to the same source location --
isn't that odd?
> And, by the way, *closing* doesn't mean disintegrating it,
> would remain in Bugzilla, for sure.
Yeah, but people won't be able to reach it with *ordinary* search and will file
duplicates. It's none of my business, of course...
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] [4.7 regression] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (7 preceding siblings ...)
2012-01-16 18:40 ` d.g.gorbachev at gmail dot com
@ 2012-01-16 18:55 ` jason at gcc dot gnu.org
2012-01-16 21:35 ` jason at gcc dot gnu.org
2012-01-16 21:50 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-16 18:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Summary|Error: 'FOO' conflicts with |[4.7 regression] Error:
|a previous declaration, |'FOO' conflicts with a
|with PCH/LTO/C++11 |previous declaration, with
| |PCH/LTO/C++11
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] [4.7 regression] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (8 preceding siblings ...)
2012-01-16 18:55 ` [Bug c++/51827] [4.7 regression] " jason at gcc dot gnu.org
@ 2012-01-16 21:35 ` jason at gcc dot gnu.org
2012-01-16 21:50 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-16 21:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-16 21:32:08 UTC ---
Author: jason
Date: Mon Jan 16 21:32:05 2012
New Revision: 183221
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183221
Log:
PR c++/51827
* mangle.c (mangle_decl): Don't mangle uninstantiated templates.
Added:
trunk/gcc/testsuite/g++.dg/pch/mangle1.C
trunk/gcc/testsuite/g++.dg/pch/mangle1.Hs
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/mangle.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/51827] [4.7 regression] Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11
2012-01-11 19:14 [Bug c++/51827] New: Error: 'FOO' conflicts with a previous declaration, with PCH/LTO/C++11 d.g.gorbachev at gmail dot com
` (9 preceding siblings ...)
2012-01-16 21:35 ` jason at gcc dot gnu.org
@ 2012-01-16 21:50 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-16 21:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51827
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-16 21:35:59 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 12+ messages in thread