[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 --- Comment #8 from Jonathan Wakely 2011-12-28 20:09:32 UTC --- (In reply to comment #6) > Well, it's just an impression ... :] > > I think one reason is that unlike normal functions, template functions are > implicitly sort of "local" (by neces

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-28 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 Marc Glisse changed: What|Removed |Added CC||marc.glisse at normalesup

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-27 Thread miles at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 --- Comment #6 from miles at gnu dot org 2011-12-28 01:04:05 UTC --- Well, it's just an impression ... :] I think one reason is that unlike normal functions, template functions are implicitly sort of "local" (by necessity), in that they can have a

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-27 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 --- Comment #5 from Jonathan Wakely 2011-12-28 00:42:16 UTC --- (In reply to comment #3) > To be honest, this kind of expectation is completely new to me. Me too. Templates are about genericity, not inlining.

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-27 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4 f

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-27 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 --- Comment #3 from Paolo Carlini 2011-12-27 14:15:06 UTC --- To be honest, this kind of expectation is completely new to me. I may be wrong, but I don't think we have anything dealing specially with templates from the inlining point of view.

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-27 Thread miles at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 --- Comment #2 from miles at gnu dot org 2011-12-27 13:54:38 UTC --- Hmm, I dunno, my impression is that people expect that template'd code is, in general "more inlined" -- templates are often used kind of as macro replacement in C++ -- especially

[Bug c++/51680] g++ 4.7 fails to inline trivial template stuff

2011-12-27 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51680 Paolo Carlini changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #1