Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Do not import FunctionTemplateDecl in record twice. #677

Closed balazske closed 5 years ago

balazske commented 5 years ago

For functions there is a check to not duplicate the declaration if it is in a record (class). For function templates there was no similar check, if a template (in the same class) was imported multiple times the FunctionTemplateDecl was created multiple times with the same templated FunctionDecl. This can result in problems with the declaration chain and assertions.

martong commented 5 years ago

run tests

balazske commented 5 years ago

https://reviews.llvm.org/D65203