[Issue 7385] Bad error message missing line number on invalid array op that isn't special cased
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 14 07:40:40 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7385
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2012-07-14 07:40:38 PDT ---
(In reply to comment #1)
> This bug also bypasses gagging:
>
> void main()
> {
> immutable double[] nums = [1.0, 2.0];
> static assert(!is(typeof({ nums[] /= nums[]; })));
> }
>
> Still prints the error.
(In reply to comment #2)
> The second test no longer prints an error on 2.059
The test case doesn't print error without -O switch, but with -O:
$ dmd -O -run test
Error: variable p1 used before set
Error: variable p0 used before set
It's another problem.
--
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