Thread overview
[Issue 14365] DMD should error or warn on SDC test0173.d
Mar 28, 2015
Ketmar Dark
Mar 28, 2015
Shammah Chancellor
Mar 28, 2015
Ketmar Dark
Mar 29, 2015
Kenji Hara
March 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14365

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #1 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
it does: z00.d(9): Warning: statement is not reachable

--
March 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14365

--- Comment #2 from Shammah Chancellor <shammah.chancellor@gmail.com> ---
Why are warnings not being printed by default?

--
March 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14365

--- Comment #3 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
i believe that this is a historic thingy. almost any C compiler is silent by default, do did DMD. i think it worth ER, as there is no same reason to not print warnings by default.

--
March 29, 2015
https://issues.dlang.org/show_bug.cgi?id=14365

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
DMD actually report "statement is not reachable" warning with -w switch. So this is an invalid issue.

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=14365

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--