llvm-project/clang/test/CXX/dcl.dcl
Reid Kleckner 1a4ab7e772 Improve error message when referencing a non-tag type with a tag
Other compilers accept invalid code here that we reject, and we need a
better error message to try to convince users that the code is really
incorrect. Consider:
  class Foo {
    typedef MyIterHelper<Foo> iterator;
    friend class iterator;
  };

Previously our wording was "elaborated type refers to a typedef".
"elaborated type" isn't widely known terminology, so the new diagnostic
says "typedef 'iterator' cannot be referenced with class specifier".

Reviewers: rsmith

Differential Revision: https://reviews.llvm.org/D25216

llvm-svn: 289259
2016-12-09 19:47:58 +00:00
..
basic.namespace Fix bogus "inline namespace cannot be reopened as non-inline" diagnostic to 2016-09-30 23:16:08 +00:00
dcl.attr Using for attributes voted into C++17. 2016-06-24 12:15:12 +00:00
dcl.enum PR18400: ignore cv-qualifiers on the underlying type of an enumeration. 2014-01-08 01:16:19 +00:00
dcl.link More tests for r201536. 2014-02-18 22:47:10 +00:00
dcl.spec Improve error message when referencing a non-tag type with a tag 2016-12-09 19:47:58 +00:00
p4-0x.cpp