[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 --- 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++/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 changed: What|Removed |Added Severity|normal |enhancement

[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
Status: 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 template class C { public: static int foobar(

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

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