[Issue 11843] New: Template instantiated twice: failed semantic analysis
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 29 19:42:28 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11843
Summary: Template instantiated twice: failed semantic analysis
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dransic at gmail.com
--- Comment #0 from Nicolas Sicard <dransic at gmail.com> 2013-12-29 19:42:21 PST ---
I thought this would be issue #11767, but the error is still there with this
code:
---
struct Foo
{
int x[string];
}
struct Bar(alias foo) {} // line 6
enum bar1 = Bar!(Foo(["a": 1]))();
enum bar2 = Bar!(Foo(["a": 1]))(); // line 9
void main() {}
---
bug.d(6): Error: struct test.Bar!(Foo(["a":1])).Bar failed semantic analysis
bug.d(9): Error: template instance test.Bar!(Foo(["a":1])) error instantiating
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list