re PR c++/21369 (Template function definition rejected if function return type begins with 'struct')
PR c++/21369 * g++.dg/init/member1.C: Tweak error markers. From-SVN: r105252
This commit is contained in:
parent
4989673889
commit
c0b16a7045
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-11 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
PR c++/21369
|
||||||
|
* g++.dg/init/member1.C: Tweak error markers.
|
||||||
|
|
||||||
2005-10-11 Janis Johnson <janis187@us.ibm.com>
|
2005-10-11 Janis Johnson <janis187@us.ibm.com>
|
||||||
|
|
||||||
PR testsuite/24281
|
PR testsuite/24281
|
||||||
|
|
|
@ -11,7 +11,7 @@ template<int> struct B {};
|
||||||
template<typename T> struct C
|
template<typename T> struct C
|
||||||
{
|
{
|
||||||
static const int i = A<T>::i; // { dg-error "incomplete" }
|
static const int i = A<T>::i; // { dg-error "incomplete" }
|
||||||
static const int j = i;
|
static const int j = i; // { dg-error "constant" }
|
||||||
B<j> b; // { dg-error "not a valid template arg" }
|
B<j> b; // { dg-error "not a valid template arg" }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue