When a dependent alignas is applied to a non-dependent typedef,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 20 Jun 2018 23:36:55 +0000 (23:36 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 20 Jun 2018 23:36:55 +0000 (23:36 +0000)
commit90ae9677e7825ef99ef8c3bd617882dbc73f81f8
tree43a31c888144526d8994e673a4c03bdddf815ed1
parent9dd5090086db99e649779b0333ea7c7a3a114a66
When a dependent alignas is applied to a non-dependent typedef,
prioritize the error for the bad subject over the error for the
dependent / non-dependent mismatch.

llvm-svn: 335191
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/p1.cpp [new file with mode: 0644]