[all-commits] [llvm/llvm-project] e69138: PR46859: Fix crash if declaring a template in a De...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Jul 29 12:03:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e69138dad5a535c4027a1931f05cabab0f484974
      https://github.com/llvm/llvm-project/commit/e69138dad5a535c4027a1931f05cabab0f484974
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/SemaCXX/extern-c.cpp

  Log Message:
  -----------
  PR46859: Fix crash if declaring a template in a DeclScope with no DeclContext.

This can happen during error recovery; it could also happen at block
scope if we ever parsed a template declaration at block scope.




More information about the All-commits mailing list