OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec9.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Lynn Akers 
4
//         Wolfgang Bangerth 
5
 
6
// PR c++/10956: Incorrect template substitution for member template
7
// specialization inside template class.
8
 
9
template  struct C {
10
    template void pre_add(T);
11
};
12
 
13
template<>
14
template
15
void C<32>::pre_add(T) {
16
  T pre;
17
}
18
 
19
int main() {
20
  C<32>().pre_add(1);
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.