aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/ttp10.C
blob: 09bdb1a8467dfd576f75c51dc6504976511d53bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do compile }

// Origin: Ivan Godard <igodard@pacbell.net>
//	   Wolfgang Bangerth <bangerth@ticam.utexas.edu>

// PR c++/16175: Missing cv qualifier in error message output

template <typename> struct Template {}; 
 
template<template<typename> class D> 
struct B { 
    static void foo1(const D<void> *);	// { dg-error "const" }
    static void foo2(volatile D<void> *);// { dg-error "volatile" }
}; 
 
class E : protected B<Template> {}; 
 
void bar() {
  E::foo1 (0);				// { dg-error "context" }
  E::foo2 (0);				// { dg-error "context" }
}