re PR c++/36631 (attribute always_inline -> sorry, unimplemented: recursive inlining)
authorJakub Jelinek <jakub@redhat.com>
Thu, 20 Nov 2008 01:47:10 +0000 (02:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 20 Nov 2008 01:47:10 +0000 (02:47 +0100)
commitf9487002a446cc5f4c777a77afe7c6eaecfec4d0
tree67fbdcdd6803ec41d3748836df422ebc60868bcc
parent104320132fba35748d61446776c5577645025025
re PR c++/36631 (attribute always_inline  ->  sorry, unimplemented: recursive inlining)

PR c++/36631
* gimplify.c (gimplify_call_expr): Defer most of the cannot inline
checking until GIMPLE lowering.
* gimple-low.c (check_call_args): New function.
(lower_stmt) <case GIMPLE_CALL>: Call it.

* g++.dg/template/call5.C: New test.

From-SVN: r142033
gcc/ChangeLog
gcc/gimple-low.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/call5.C [new file with mode: 0644]