re PR c++/28058 (ICE in inline_forbidden_p)
authorMark Mitchell <mark@codesourcery.com>
Sun, 27 Aug 2006 17:45:25 +0000 (17:45 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 27 Aug 2006 17:45:25 +0000 (17:45 +0000)
commit99f4234aa713145f873b2295a4d62dd388489e64
tree61cd571210dd2a9eb140c6a82736f3e05ddaac45
parentbf87e098aefb413abaa78ec5e0d37dc7366c2c86
re PR c++/28058 (ICE in inline_forbidden_p)

PR c++/28058
* pt.c (register_specialization): Return error_mark_node for
specialization-after-instantiation.
* decl2.c (mark_used): Mark the main function used when one of its
clones is used.

PR c++/28058
* g++.dg/template/spec31.C: New test.

From-SVN: r116491
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec31.C [new file with mode: 0644]