// { dg-do compile } // Origin: Giovanni Bajo // Make sure the error about '<:' can be turned into a warning // { dg-options "-fpermissive" } struct B; template struct Foo {}; Foo<::B> foo; // { dg-bogus "error" "error in place of warning" } // { dg-error "" "" { target *-*-* } 11 }