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
This commit is contained in:
parent
6892757cae
commit
9ee12b3b62
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user