[Issue 4375] Require explicit braces when 'else' is ambiguous

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 23 06:04:09 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4375



--- Comment #7 from Stewart Gordon <smjg at iname.com> 2010-09-23 06:03:28 PDT ---
(In reply to comment #0)
> So in D2 I propose to turn that code into an actual syntax error, similar to
> using the warnings-as-errors option of GCC:
> ...>gcc -Wall -Werror test.c -o test
> cc1.exe: warnings being treated as errors
> test.c: In function 'main':
> test.c:6:8: error: suggest explicit braces to avoid ambiguous 'else'

If it were made an error, it wouldn't be a mere suggestion, surely?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list