[Issue 14186] Silent syntax change from C and C++

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Feb 16 04:44:10 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14186

--- Comment #4 from ag0aep6g at gmail.com ---
(In reply to Sobirari Muhomori from comment #3)
> Can you confirm it with --std=c99 -pedantic?

Same error:

----
$ gcc --std=c99 -pedantic test.c
test.c: In function ‘main’:
test.c:5:15: error: lvalue required as left operand of assignment
     1 ? b : c = 0;
               ^
$ gcc --version
gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1
----

--


More information about the Digitalmars-d-bugs mailing list