[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 292357] Problem in Parser: Unexpected token ':' - When dealing with GCC operator ?:
From:       ichramm <juanantonio.ram () gmail ! com>
Date:       2012-01-26 21:17:25
Message-ID: E1RqWhB-0004YV-Qr () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=292357





--- Comment #3 from ichramm <juanantonio ram gmail com>  2012-01-26 21:17:25 ---
(In reply to comment #2)

OMG! That was really fast!

I really don't know if others compilers support it or not, the only thing I've
found is from gcc page:

http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC70

GCC also allows the question mark and the colon to be separated (x ? : y), does
your fix consider that?

Thanks a lot, btw :)


> Git commit ade659477987a2cffc250b164b0428ca4229ec97 by Milian Wolff.
> Committed on 26/01/2012 at 22:05.
> Pushed by mwolff into branch '4.3'.
> 
> allow empty expression in ternary conditional-expression
> 
> this makes kdevelop more compliant with GCC at least,
> not sure about other compilers. Could not find anything
> in the spec that explicitly allows this.
> 
> M  +6    -2    languages/cpp/parser/parser.cpp
> M  +12   -0    languages/cpp/parser/tests/test_parser.cpp
> M  +2    -0    languages/cpp/parser/tests/test_parser.h
> 
> http://commits.kde.org/kdevelop/ade659477987a2cffc250b164b0428ca4229ec97

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic