mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 15:56:06 +00:00

ParseCXXNonStaticMemberInitializer stashes away all the tokens for the initializer and an additional EOF token to denote where the initializer ends. However, it is possible for ParseLexedMemberInitializer to get its hands on the "real" EOF token; since the two tokens are indistinguishable, we end up consuming the EOF and descend into madness. Instead, make it possible to tell which EOF token we are looking at. This fixes PR21872. llvm-svn: 224505
5 lines
237 B
C++
5 lines
237 B
C++
// RUN: not %clang_cc1 -fsyntax-only %s
|
|
template <typename T> struct S {
|
|
int k = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
|
|
int f;
|