[all-commits] [llvm/llvm-project] 179f4b: Don't treat a CXXScopeSpec with a nested name spec...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Apr 3 20:21:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 179f4baba0672a5e85c5db91095c4cd701a2d32d
      https://github.com/llvm/llvm-project/commit/179f4baba0672a5e85c5db91095c4cd701a2d32d
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M clang/include/clang/Sema/DeclSpec.h
    M clang/test/SemaCXX/nested-name-spec.cpp

  Log Message:
  -----------
  Don't treat a CXXScopeSpec with a nested name specifier but no location
as invalid.

We create those when forming trivial type source information with no
associated location, which, unfortunately, we do create in some cases
(when a TreeTransform with no base location is used to transform a
QualType).

This would previously lead to rejects-valid bugs when we misinterpreted
these constructs as having no nested-name-specifier.




More information about the All-commits mailing list