[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / crash6.C
blobb8481be4d34e32a6fdfabe4c3ed7884fc0fe66e2
1 // { dg-do compile }
3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
5 // PR c++/18652: ICE redeclaring variable as template.
7 int A;                  // { dg-message "previous declaration" }
8 template<int> struct A; // { dg-error "different kind of symbol" }