Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
7a068d65
Commit
7a068d65
authored
Jan 06, 2011
by
Christian Kamm
Browse files
C++ parser: Fix bug with conditional expressions.
Reviewed-by: Erik Verbruggen
parent
283a3d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
7a068d65
...
...
@@ -4877,7 +4877,7 @@ void Parser::parseExpressionWithOperatorPrecedence(ExpressionAST *&lhs, int minP
if
(
operPrecedence
==
Prec
::
Conditional
)
{
condExpr
=
new
(
_pool
)
ConditionalExpressionAST
;
condExpr
->
question_token
=
oper
;
if
(
oper
==
T_COLON
)
{
if
(
tok
().
kind
()
==
T_COLON
)
{
// GNU extension:
// logical-or-expression '?' ':' conditional-expression
condExpr
->
left_expression
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment