[Issue 20696] New: Should error when retrieving mangling while the type is not yet final
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 24 08:51:50 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20696
Issue ID: 20696
Summary: Should error when retrieving mangling while the type
is not yet final
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
Consider:
-----
struct S() {
int test() {
pragma(msg, test.mangleof);
return 3;
}
}
S!() s;
-----
This should give an error, because attributes that affect mangling are not
known until the semantic analysis is complete.
--
More information about the Digitalmars-d-bugs
mailing list