[Issue 10277] New: Incorrect error file and line on redeclaration of TypeInfo

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 5 12:25:09 PDT 2013


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

           Summary: Incorrect error file and line on redeclaration of
                    TypeInfo
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2013-06-05 20:25:07 BST ---
Test case:
test.d:
----
class TypeInfo {}
----

test2.d:
----
import test;
----

$ dmd test2.d
/usr/include/d/druntime/import/object.di(67): Error: class object.TypeInfo only
object.d can define this reserved class name

It should report line 1 of test2.d.

$ dmd -v | head -n2
DMD64 D Compiler v2.063
Copyright (c) 1999-2012 by Digital Mars written by Walter Bright

-- 
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