[Bug c++/45601] explicit template instantiation problem

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-09-09 09:16 --- The current ISO document, C++98 or C++03 which contains some rather small amendments: if C++0x were different it would show only when -std=c++0x is passed. In any case, it's unfortunate but we cannot do much ab

[Bug c++/45601] explicit template instantiation problem

2010-09-09 Thread stephane at magnenat dot net
--- Comment #6 from stephane at magnenat dot net 2010-09-09 07:20 --- Created an attachment (id=21747) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21747&action=view) Working code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45601

[Bug c++/45601] explicit template instantiation problem

2010-09-09 Thread stephane at magnenat dot net
--- Comment #5 from stephane at magnenat dot net 2010-09-09 07:19 --- Thank you very much for these explanations, thanks to your pointer I managed to make a working version, which I will attach to this bug as reference. As a side-note, it is not easy to access C++ standard because the o

[Bug c++/45601] explicit template instantiation problem

2010-09-08 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-09-08 16:58 --- Actually, it seems pretty straightforward to me that S is nondeduced in the last case: see 14.8.2.4/4, the last line. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/45601] explicit template instantiation problem

2010-09-08 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-09-08 16:44 --- Please clarify: "As far as I can find on the net, it should work." No compiler to which I have access compiles it, I tried, besides GCC, Intel, SunStudio, Comeau, VC++8. Note I didn't really analyze the testcas