Commit 9ee12b3b by Mark Mitchell Committed by Mark Mitchell

Wdtor1.C: Declare template in system header with explicit C++ linkage.

	* g++.dg/warn/Wdtor1.C: Declare template in system header with
	explicit C++ linkage.

From-SVN: r97955
parent 6892757c
2005-04-10 Mark Mitchell <mark@codesourcery.com>
* g++.dg/warn/Wdtor1.C: Declare template in system header with
explicit C++ linkage.
2005-04-10 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* gfortran.dg/pr17229.f: Take care of the new obsolescence
......
......@@ -5,10 +5,14 @@
# 1 "<command line>"
# 1 "t.cc"
# 1 "include/t.h" 1 3 4
// Declare the template with explicit C++ linkage in case system
// headers have implicit C linkage.
extern "C++" {
template <int> class t
{
virtual void f();
};
}
# 2 "t.cc" 2
void f(void)
......
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