[Bug c++/45349] template function specializations are not recognized when the template is implemented in a header, and optimization is on.

2010-08-19 Thread tyler dot packer at landesk dot com
--- Comment #8 from tyler dot packer at landesk dot com 2010-08-19 22:13 --- (In reply to comment #7) > Thus, invalid. > understood. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45349

[Bug c++/45349] template function specializations are not recognized when the template is implemented in a header, and optimization is on.

2010-08-19 Thread tyler dot packer at landesk dot com
--- Comment #5 from tyler dot packer at landesk dot com 2010-08-19 21:46 --- (In reply to comment #4) > specialization is required to be done visible in the translation unit when the > use is used IIRC. > Makes sense, however I would assume it would work the same way when

[Bug c++/45349] template function specializations are not recognized when the template is implemented in a header, and optimization is on.

2010-08-19 Thread tyler dot packer at landesk dot com
--- Comment #3 from tyler dot packer at landesk dot com 2010-08-19 21:40 --- Also included in the attachment is s2.cpp wich is an duplicate example of the specialization in a single module. This sample when compiled does NOT exhibit the same problem as when the class declaration (and

[Bug c++/45349] template function specializations are not recognized when the template is implemented in a header, and optimization is on.

2010-08-19 Thread tyler dot packer at landesk dot com
--- Comment #1 from tyler dot packer at landesk dot com 2010-08-19 21:36 --- Created an attachment (id=21524) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21524&action=view) tar.gz of source and temporaries source tarball -- http://gcc.gnu.org/bugzilla/show_bug

[Bug c++/45349] New: template function specializations are not recognized when the template is implemented in a header, and optimization is on.

2010-08-19 Thread tyler dot packer at landesk dot com
erity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tyler dot packer at landesk dot com GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.c