/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C: In function ‘void bad_namespace()’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:8:3: error: ‘namespace’ definition is not allowed here namespace foo { // { dg-error "'namespace' definition is not allowed here" } ▲──────── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C: At global scope: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:18:3: error: attributes are not allowed on a function-definition __attribute__((constructor (0))) // { dg-error "attributes are not allowed on a function-definition" } ▲──────────── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:27:20: error: keyword ‘typename’ not allowed outside of templates class bar : public typename foo // { dg-error "keyword 'typename' not allowed outside of templates" } ▲─────── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:38:36: error: expected an identifier for the attribute name void bogus_scoped_attribute [[foo::400]] (); // { dg-error "expected an identifier for the attribute name" } ▲── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:44:25: warning: ‘deprecated’ is a C++14 feature; use ‘gnu::deprecated’ [-Wpedantic] void meta_deprecation [[deprecated]] (); // { dg-warning "use 'gnu::deprecated'" } ▲───────── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C: In function ‘int foo()’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:51:11: error: named return values are no longer supported int foo() return bar {} // { dg-error "named return values are no longer supported" } ▲───── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C: In function ‘void foo(T)’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:61:5: error: invalid declaration of member template in local class template<int> struct B {} // { dg-error "local class" } ▲─────── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C: At global scope: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:70:14: error: template with C linkage extern "C" { template<typename T> void foo(T); } // { dg-error "C linkage" } ▲─────── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:78:24: error: unsupported non-standard concatenation of string literals const void *s = u8"a" u"b"; // { dg-error "non-standard concatenation" } ───── ▲─── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:84:30: error: unsupported non-standard concatenation of string literals const void *s2 = u"a" u"b" u8"c"; // { dg-error "non-standard concatenation" } ────────── ▲──── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:91:39: error: ‘this’ may not be used in this context void default_arg_of_this (void *ptr = this); // { dg-error "'this'" } ▲─── /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C: In function ‘void template_inside_fn()’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/g++.dg/diagnostic/token-ranges.C:99:11: error: a template declaration cannot appear at block scope int i = template < // { dg-error "cannot appear at block scope" } ▲───────