[Bug c++/77615] Template specialization is resolved differently with and without optimizations turned on

2016-09-16 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77615 --- Comment #3 from Markus Trippelsdorf --- The compiler only sees single compilation units and it doesn't keep a database of previously seen units. When it compiles usage.cc it doesn't know anything about specialization.cc. So there really

[Bug c++/77615] Template specialization is resolved differently with and without optimizations turned on

2016-09-16 Thread jan.bujak at nokia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77615 --- Comment #2 from Jan Bujak --- (In reply to Markus Trippelsdorf from comment #1) > Please read: https://isocpp.org/wiki/faq/templates > > * Why can’t I separate the definition of my templates class from its > declaration and put it inside a

[Bug c++/77615] Template specialization is resolved differently with and without optimizations turned on

2016-09-16 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77615 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|