URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: Ivan Godard
|
// Origin: Ivan Godard
|
// Wolfgang Bangerth
|
// Wolfgang Bangerth
|
|
|
// PR c++/17344: Substitution failure is not an error
|
// PR c++/17344: Substitution failure is not an error
|
// for default template argument
|
// for default template argument
|
|
|
template struct intTraits;
|
template struct intTraits;
|
|
|
template<> struct intTraits {
|
template<> struct intTraits {
|
static const int i = 0;
|
static const int i = 0;
|
};
|
};
|
|
|
template::i> struct A {};
|
template::i> struct A {};
|
|
|
struct S {
|
struct S {
|
template class X> S(X);
|
template class X> S(X);
|
};
|
};
|
|
|
int bar(S);
|
int bar(S);
|
int bar(A);
|
int bar(A);
|
|
|
A bed;
|
A bed;
|
int i = bar(bed);
|
int i = bar(bed);
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.