Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #180 (closed defect: invalid)

Opened 5 years ago

Last modified 5 years ago

Static Assertion in Demangle

Reported by: keinfarbton Assigned to: Don Clugston
Priority: major Milestone: 0.97 RC 1
Component: Tango Version:
Keywords: Cc:

Description

compiled on linux with -debug -debug=UnitTest? -unittest -version=Posix

[D] /home/frank/tango/tango/util/meta/Demangle.d(718): static assert ("class tango.util.meta.Demangle.ComplexTemplate?!(double = -0x9.1A2B3C4D5E6FFFFp-459, creal = 0x8.91A28p-16383 - 0xC.CCCCCCCCCCCCCCDp-2i).ComplexTemplate?" == "class tango.util.meta.Demangle.ComplexTemplate?!(double = -0x1.23456789ABCDFFFEp-456, creal = 0x1.12345p-16380 - 0x1.999999999999999Ap+1i).ComplexTemplate?") is false

Change History

01/11/07 20:19:36 changed by keinfarbton

  • component changed from Core Functionality to Tango.

01/25/07 07:29:17 changed by Don Clugston

Please specify DMD or GDC. That behaviour is extremely strange, and hard to explain; sounds like a compiler bug. Please check if the Linux name mangling is correct. In the file 'bug.d', the code below compiles without errors on DMD Windows.


template A(real x) {

class B{}

}

const char [] C = A!(0x1.23p+10).B.mangleof; static assert(C=="C3bug15T1AVde123P10Z1B");

01/31/07 04:58:19 changed by keinfarbton

  • milestone set to 1.0.

03/04/07 14:26:16 changed by kris

  • milestone changed from 1.0 to 0.97 RC 1.

03/25/07 13:35:15 changed by larsivi

Is this still valid?

03/26/07 08:17:18 changed by Don Clugston

  • status changed from new to closed.
  • resolution set to invalid.

No longer relevant; demangle has been removed.