[Bug c++/19610] default constructor not called for static template member of template class

jamesp at trdlnk dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 24 21:19:00 GMT 2005


------- Additional Comments From jamesp at trdlnk dot com  2005-01-24 21:19 -------
I've tried what you suggested, and it did work, but now I'm confused. Why was
the constructor for aa2 called in the original example? Based on what you have
said, it sounds like that should not have happened until aa2 was instantiated.
If it is working properly then I don't understand why the extra line to
instantiate aa2 is necessary in your fix. The fact that I specialized them all
the same way and some of them were constructed and others weren't seems odd to me.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19610



More information about the Gcc-bugs mailing list