[Issue 3467] Non-int integral template parameters not correctly propagated

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 8 09:24:17 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=3467

kai at redstar.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kai at redstar.de

--- Comment #14 from kai at redstar.de ---
As a side effect, the name mangling is wrong.

Lets change the type parameter from uint to ulong. Then the bar function of

foo!( 4 ) baz

is mangled as

_D7bug346712__T3fooVii4Z3foo3barMFNaNbNiNfZS7bug346712__T3fooVii4Z3foo

but bar function of

foo!( 4L ) baz

is mangled as

_D7bug346712__T3fooVli4Z3foo3barMFNaNbNiNfZS7bug346712__T3fooVli4Z3foo

In both cases, I would expect

_D7bug346712__T3fooVmi4Z3foo3barMFNaNbNiNfZS7bug346712__T3fooVmi4Z3foo

because the type parameter is ulong.

--


More information about the Digitalmars-d-bugs mailing list