[Bug c++/62206] New: Gcc doesn't optimize methods in template class, even when they don't depend on the template variable

2014-08-20 Thread tohava at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tohava at gmail dot com Take a look at the following code: #include stdio.h template class T class C { public: static int

[Bug c++/62206] Gcc doesn't optimize methods in template class, even when they don't depend on the template variable

2014-08-20 Thread tohava at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62206 ori bar tohava at gmail dot com changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/62206] Gcc doesn't optimize methods in template class, even when they don't depend on the template variable

2014-08-20 Thread tohava at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62206 --- Comment #2 from ori bar tohava at gmail dot com --- It can still generate two different functions which are just single jump instructions to the same code. Also, does the C++ standard say that your inequality must be true?

[Bug c++/39099] New: Local classes cannot be used as template arguments

2009-02-04 Thread tohava at gmail dot com
ReportedBy: tohava at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39099