Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
ac0a852f9045a8c49fa828dd53b2d1d31df00eb7
qt-creator/tests/auto/cplusplus/preprocessor/data/recursive.2.cpp

7 lines
80 B
C++
Raw Normal View History

C++: Fix preprocessor blocked macro bug. By lexing the first token after a macro call (meaning: the token after the closing parenthesis (which was passed to handleFunctionLikeMacro which in turn pushed it back into the token buffer)), a token buffer might be popped, which unblocks the macro that generated the actual param pack. The effect was that if this happens in the expansion of a recursive macro (with parameters!), the preprocessor ended up in an infinite loop. Task-number: QTCREATORBUG-9015 Task-number: QTCREATORBUG-9447 Change-Id: I0d83c59188ec15c4a948970e9fa944a17d765475 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-06-10 15:12:17 +02:00
#define a(x) b(x) c(x)
#define b(x) c(x) a(x)
#define c(x) a(x) b(x)
b(1)
a(1)
Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 114ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API