From 35461e5fe44be0537e60fd659fec9215181d4fd0 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 30 Oct 2019 16:39:23 +0100 Subject: issue #7358: Ternary conditional and null-coalescing operator in constructor results in faulty warning Problem due to the implementation of "Support for C# nullable types (Origin: bugzilla #638606)" (issue #4064, pull request #645). The used condition was a bit to stringent so later on the function was not recognized as constructor. --- src/scanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.l b/src/scanner.l index 61b51cb..c8951e5 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6923,7 +6923,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) } } <*>\? { - if (insideCS) + if (insideCS && (YY_START != SkipRound)) { if (current->type.isEmpty()) { -- cgit v0.12