mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 08:36:41 +00:00

Fix crash in BuildCXXDefaultInitExpr when member of template class has same name as the class itself. Based on patch by Raphael "Teemperor" Isemann! Differential Revision: http://reviews.llvm.org/D19721 llvm-svn: 268082
9 lines
160 B
C++
9 lines
160 B
C++
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s
|
|
|
|
template <typename T>
|
|
struct A {
|
|
// Used to crash when field was named after class.
|
|
int A = 0;
|
|
};
|
|
A<int> a;
|