Commit 3b82c249 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

pt.c (determine_specialization): Ignore artificial functions.

2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* pt.c (determine_specialization): Ignore artificial functions.

2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* g++.old-deja/g++.pt/spec41.C: New test.

From-SVN: r42342
parent 91ea548a
2001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (determine_specialization): Ignore artificial functions.
2001-05-20 Neil Booth <neil@daikokuya.demon.co.uk>
* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
......
......@@ -1023,6 +1023,9 @@ determine_specialization (template_id, decl, targs_out,
/* This is just an ordinary non-member function. Nothing can
be a specialization of that. */
continue;
else if (DECL_ARTIFICIAL (fn))
/* Cannot specialize functions that are created implicitly. */
continue;
else
{
tree decl_arg_types;
......
2001-05-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-deja/g++.pt/spec41.C: New test.
2001-05-19 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/compile/20010114-1.x: Remove.
......
// Build don't link:
// Origin: <mikes@nilenet.com>
// Bug: Specialization of implicitly created function should be
// rejected.
template<class T> class blah{};
blah<char>::blah(){} // ERROR - invalid specialization
int main(){}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment