[Bug c++/53930] bug in linker

2012-07-12 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 --- Comment #10 from Richard Guenther 2012-07-12 12:18:11 UTC --- (In reply to comment #9) > Correction of typo: > ...So I actually do not redefine std::string again, I just USE the type > defined > in third file. Preprocessing makes the std::s

[Bug c++/53930] bug in linker

2012-07-12 Thread bespalovdn at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 --- Comment #9 from Dmitry Bespalov 2012-07-12 10:54:31 UTC --- Correction of typo: ...So I actually do not redefine std::string again, I just USE the type defined in third file. Sorry

[Bug c++/53930] bug in linker

2012-07-12 Thread bespalovdn at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 --- Comment #8 from Dmitry Bespalov 2012-07-12 10:51:51 UTC --- Jonathan, I'm not sure if we're talking about the same thing. You've asked: << If that was the case how would you ever use any type (e.g. std::string) in more << than one file, it w

[Bug c++/53930] bug in linker

2012-07-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 --- Comment #7 from Jonathan Wakely 2012-07-12 10:09:10 UTC --- ISO 14882:2011 3.2 "There can be more than one definition of a class type (Clause 9), [...] in a program provided that each definition appears in a different translation unit, and

[Bug c++/53930] bug in linker

2012-07-12 Thread bespalovdn at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 --- Comment #6 from Dmitry Bespalov 2012-07-12 10:03:14 UTC --- It really works as expected if put A into some namespace, but it really as well that implementation differs in Microsoft's VC and GCC. Under VC you always gets right result, there is

[Bug c++/53930] bug in linker

2012-07-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/53930] bug in linker

2012-07-12 Thread bespalovdn at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 Dmitry Bespalov changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/53930] bug in linker

2012-07-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/53930] bug in linker

2012-07-11 Thread bespalovdn at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 DmitryBespalov changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/53930] bug in linker

2012-07-11 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53930 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|