[Issue 1670] New: tupleof an aggregate cannot be used as a template tuple argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 15 06:53:24 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1670
Summary: tupleof an aggregate cannot be used as a template tuple
argument
Product: D
Version: 1.023
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jarrett.billingsley at gmail.com
struct S
{
int x;
}
class C
{
int x;
}
union U
{
int x;
}
alias Tuple!(S.tupleof) ST;
alias Tuple!(C.tupleof) CT;
alias Tuple!(U.tupleof) UT;
All of those instantiations give the error "Error: tuple is not a valid
template value argument". No, but I'd suppose being tuples that they'd be
valid _tuple_ arguments, Mr. Compiler!
--
More information about the Digitalmars-d-bugs
mailing list