// PR c++/28710
// { dg-do compile }

template<int> union A;  // { dg-error "previous" }
struct A;               // { dg-error "non-template" }


syntax highlighted by Code2HTML, v. 0.9.1