Thread overview
[Issue 10277] New: Incorrect error file and line on redeclaration of TypeInfo
Jun 05, 2013
Robert Clipsham
Jun 05, 2013
Robert Clipsham
Jun 12, 2013
Henning Pohl
Jun 16, 2013
Walter Bright
June 05, 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@puremagic.com
        ReportedBy: robert@octarineparrot.com


--- Comment #0 from Robert Clipsham <robert@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: -------
June 05, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10277



--- Comment #1 from Robert Clipsham <robert@octarineparrot.com> 2013-06-05 20:25:58 BST ---
The issue occurs with other reserved names such as Throwable, Exception and Error too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 12, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10277


Henning Pohl <henning@still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |henning@still-hidden.de


--- Comment #2 from Henning Pohl <henning@still-hidden.de> 2013-06-12 16:25:23 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2169

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10277



--- Comment #3 from github-bugzilla@puremagic.com 2013-06-16 11:25:11 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/956eb92f1bc9d423480a3b708f17dc34db9d7e72
fix issue 10277 - Incorrect error file and line on redeclaration of
TypeInfo

https://github.com/D-Programming-Language/dmd/commit/6451593fb9bd8a718c0604cabaaf489fafd28d19 Merge pull request #2169 from hpohl/10277

fix issue 10277 - Incorrect error file and line on redeclaration of TypeInfo

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 16, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10277


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10277



--- Comment #4 from github-bugzilla@puremagic.com 2013-09-21 06:15:07 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/9837043cfc75a37d4a79941cc5b401e19213088d Merge pull request #1592 from rainers/demangle_local

fix issues 10277 & 6045:improve demangling for function local symbols

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10277



--- Comment #5 from github-bugzilla@puremagic.com 2013-09-21 09:17:08 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/64ae912e8e89840a0ed14fc149c10fe6bfb8e169 Merge pull request #611 from rainers/demangle_local

fix issues 10277 & 6045:improve demangling for function local symbols

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