[Issue 5357] mixin templates accept strings as struct name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 21 00:39:35 PST 2010


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


Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at kyllingen.net


--- Comment #6 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-12-21 00:37:40 PST ---
I think this is a bug after all.  What does the symbol 'name' refer to inside
the template?  The string or the struct?  Here's a similar example, which quite
correctly fails to compile:

  void foo(string bar)
  {
      struct bar { }
  }

In this case, the compiler says "Error: declaration bar is already defined".

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