]> granicus.if.org Git - clang/commit
[codeview] Don't emit variable templates as class members
authorReid Kleckner <rnk@google.com>
Fri, 20 Jul 2018 20:55:00 +0000 (20:55 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 20 Jul 2018 20:55:00 +0000 (20:55 +0000)
commit906cfe1bf36df2d0efbea663dcc91f9e36e2e097
tree501ed0b33281de8f1730dc8bbf008843666ae256
parent3f8eb57cfceb2c8c7b0adee006d9826e3f4d2cbc
[codeview] Don't emit variable templates as class members

MSVC doesn't, so neither should we.

Fixes PR38004, which is a crash that happens when we try to emit debug
info for a still-dependent partial variable template specialization.

As a follow-up, we should review what we're doing for function and class
member templates. It looks like we don't filter those out, but I can't
seem to get clang to emit any.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337616 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-codeview-var-templates.cpp [new file with mode: 0644]