repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
spec36.C
blob
5807fc516dffca64ec6853cddfebc4ebb5268d95
1
/* PR c++/38089 */
2
/* { dg-do compile } */
3
4
struct basic_string
5
{
6
basic_string(const int __s);
7
};
8
namespace MyNS {
9
class MyClass {
10
template <typename T>
11
T test() { } /* { dg-message "from definition" "" { target c++98_only } } */
12
};
13
}
14
template <>
15
basic_string MyNS::MyClass::test() /* { dg-error "specialization of" "" { target c++98_only } }*/
16
{ return 1; }