mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 03:34:38 +08:00
re PR c++/11106 (Error message gives partially mangled operator name)
2003-06-30 Giovanni Bajo <giovannibajo@libero.it> PR c++/11106 * g++.dg/other/error5.C: New test. From-SVN: r68712
This commit is contained in:
parent
37198bc85c
commit
5806e0404c
@ -1,3 +1,8 @@
|
||||
2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
|
||||
|
||||
PR c++/11106
|
||||
* g++.dg/other/error5.C: New test.
|
||||
|
||||
2003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* gcc.dg/format/gcc_diag-1.c: New test.
|
||||
|
13
gcc/testsuite/g++.dg/other/error5.C
Normal file
13
gcc/testsuite/g++.dg/other/error5.C
Normal file
@ -0,0 +1,13 @@
|
||||
// { dg-do compile }
|
||||
// Origin: Wolfgang Bangerth <bangerth@ices.utexas.edu>
|
||||
// PR c++/11106: Error message gives partially mangled operator name
|
||||
|
||||
template <typename T> struct S {
|
||||
struct I {};
|
||||
};
|
||||
|
||||
template <typename T> struct S2 : S<T> {
|
||||
using S<T>::operator typename S<T>::I*; // { dg-error "operator S\\<T\\>" "" }
|
||||
};
|
||||
|
||||
template struct S2<int>; // { dg-error "instantiated" "" }
|
Loading…
Reference in New Issue
Block a user