// PR c++/115801 // { dg-additional-options "-fmodules-ts" } import test; int main() { GMF gmf; Attached attached; int a = test_gmf(); int b = test_attached(); GMF_Hidden gmf_hidden; // { dg-error "not declared" } Attached_Hidden attached_hidden; // { dg-error "not declared" } } // { dg-prune-output "expected primary-expression" }