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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [meminit2.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do compile }
2
// Origin: Mark Anders 
3
// PR c++/15503: disambiguators in base classes and mem-initializers
4
 
5
template  struct O {
6
  template  struct I {};
7
};
8
 
9
template 
10
struct A : typename O::template I {   // { dg-error "keyword 'typename' not allowed" }
11
  A() :    typename O::template I()   // { dg-error "keyword 'typename' not allowed" }
12
  {};
13
};
14
 
15
template 
16
struct B : O::template I {
17
  B() :    O::I()   // { dg-error "used as template|it is a template" "" }
18
  {};
19
};
20
 
21
// { dg-bogus "end of input" "bogus token skipping in the parser" { xfail *-*-* } 17 }

powered by: WebSVN 2.1.0

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