[Issue 2841] char[] incorrectly accepted as a template value argument in D2
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 22 03:04:53 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2841
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|spec |accepts-invalid
Summary|char[] template value |char[] incorrectly accepted
|arguments broken in D2 |as a template value
| |argument in D2
Severity|major |normal
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2009-09-22 03:04:52 PDT ---
Here's a test case which illustrates the problem better.
int foo(char[])() { return 0; }
bug.d(1): identifier expected for template value parameter
---
So it clearly thinks it is a template value parameter, but it's impossible in
D2 to have a char[] compile-time value! It must be immutable(char)[].
--
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