www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2461] New: Duplicate typedef (with different initializer) in module has wrong value

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2461

           Summary: Duplicate typedef (with different initializer) in module
                    has wrong value
           Product: D
           Version: 2.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: rosscanning2007 gmail.com


The code below produces the output 
555
555

when it should be
555
666


import std.stdio;

void f1() {
   typedef int MyInt = 555;
   MyInt x;
   writefln(x);
}

void f2() {
   typedef int MyInt = 666;
   MyInt x;
   writefln(x);
}

void main() {
   f1();
   f2();
}


-- 
Nov 18 2008
next sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2461


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |wrong-code





Please remember to assign keywords to bug reports.  To everybody reading this:
Please look through issues you've reported and check for missing keywords.


-- 
Nov 19 2008
parent reply Brad Roberts <braddr puremagic.com> writes:
Does anyone, particularly Walter, pay any attention?  I agree they're
useful categorizers, but I have doubts that they're even used by anyone.


 Please remember to assign keywords to bug reports.  To everybody reading this:
 Please look through issues you've reported and check for missing keywords.
Later, Brad
Nov 19 2008
parent reply "Steven Schveighoffer" <schveiguy yahoo.com> writes:
"Brad Roberts" wrote
 Does anyone, particularly Walter, pay any attention?  I agree they're
 useful categorizers, but I have doubts that they're even used by anyone.
The problem with them (IMO) is that you have to type them in exactly as they are defined. Every time I add a keyword (and I do use them, not sure if it helps anything), I have to click on the keywords link to see how they are spelled and what they mean. It would be a MUCH better interface (and probably more used feature) if the keywords were a checkbox list instead. I understand that this is not your software, but bugzilla's, so probably no change will come from this. But at least it's an idea for explaining why it's a seldom used feature. My preference for interface would be a checkbox list, with tooltips explaining the keywords when you hover over them. -Steve
Nov 20 2008
parent reply Brad Roberts <braddr puremagic.com> writes:
Steven Schveighoffer wrote:
 "Brad Roberts" wrote
 Does anyone, particularly Walter, pay any attention?  I agree they're
 useful categorizers, but I have doubts that they're even used by anyone.
The problem with them (IMO) is that you have to type them in exactly as they are defined. Every time I add a keyword (and I do use them, not sure if it helps anything), I have to click on the keywords link to see how they are spelled and what they mean. It would be a MUCH better interface (and probably more used feature) if the keywords were a checkbox list instead. I understand that this is not your software, but bugzilla's, so probably no change will come from this. But at least it's an idea for explaining why it's a seldom used feature. My preference for interface would be a checkbox list, with tooltips explaining the keywords when you hover over them. -Steve
Sorry, I want to distinguish 'enter' from 'use'. It's obvious that some people enter them. Have you ever searched for bugs with specific key words, or used it for any analysis of existing bugs in any way? Later, Brad
Nov 20 2008
parent "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Brad Roberts" <braddr puremagic.com> wrote in message 
news:mailman.25.1227201018.22690.digitalmars-d-bugs puremagic.com...
<snip>
 Sorry, I want to distinguish 'enter' from 'use'.  It's obvious that some
 people enter them.  Have you ever searched for bugs with specific key
 words, or used it for any analysis of existing bugs in any way?
Yes. Being able to tell how many bugs of which of these kinds are around is both interesting and potentially useful. Stewart. -- My e-mail address is valid but not my primary mailbox. Please keep replies on the 'group where everybody may benefit.
Nov 20 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2461


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |WORKSFORME



16:46:46 PST ---
Can't recreate in 2.060 with -d.

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