blob: 09bdb1a8467dfd576f75c51dc6504976511d53bb [file] [log] [blame]
// { 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" }
}