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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [qualified-id1.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 4 Sep 2003 
5
// Origin Volker Reichelt reichelt@igpm.rwth-aachen.de
6
 
7
// PR 11922
8
 
9
struct A
10
{
11
  template  struct B;
12
  struct C;
13
};
14
 
15
template <> struct A::B {};
16
 
17
template  void foo()
18
{
19
  T::C (); // { dg-error "parsed as a non-type|if a type is meant" "" }
20
  T::template B(); // { dg-error "parsed as a non-type|if a type is meant" "" }
21
}
22
 
23
void bar()
24
{
25
  foo(); // { dg-error "instantiated" "" }
26
}

powered by: WebSVN 2.1.0

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