re PR c++/24314 (Extra "template<>" in partial specialization is compiled successfuly.)
2018-04-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/24314 * g++.dg/parse/template29.C: New. From-SVN: r259273
This commit is contained in:
parent
2377345dce
commit
b30ae8037d
@ -1,3 +1,8 @@
|
||||
2018-04-10 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/24314
|
||||
* g++.dg/parse/template29.C: New.
|
||||
|
||||
2018-04-10 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
PR testsuite/85190
|
||||
|
31
gcc/testsuite/g++.dg/parse/template29.C
Normal file
31
gcc/testsuite/g++.dg/parse/template29.C
Normal file
@ -0,0 +1,31 @@
|
||||
// PR c++/24314
|
||||
|
||||
// The base template.
|
||||
template <class T>
|
||||
struct A
|
||||
{
|
||||
int select() { return 0; }
|
||||
};
|
||||
|
||||
//Extra "template<>"
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <>
|
||||
template <class T>
|
||||
struct A<T*> // { dg-error "too many template-parameter-lists" }
|
||||
{
|
||||
int select() { return 1; }
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
return A<int*>().select();
|
||||
}
|
Loading…
Reference in New Issue
Block a user