[Issue 11504] [CTFE] JSONValue cannot make in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 16 02:41:15 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11504


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE
          Component|Phobos                      |DMD


--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-16 02:41:13 PST ---
(In reply to comment #4)
> (In reply to comment #2)
> > The reason why the code mentioned above was OK in the past is a thing by the
> > bugs of the compilers. (SeeAlso: Issue11427
> 
> std.json was refactored a while ago and it might be the cause of this
> regression. But I still don't understand what the problem is with this code
> *right now*. Can anyone try to explain what SHOO meant in plain English?

I separately filed the true std.json regression as issue 11527.
After fixing the bug, the OP case will print following errors.

C:\dmd2\src\phobos\std\json.d(181): Error: Unions with overlapping fields are
not yet supported in CTFE
C:\dmd2\src\phobos\std\json.d(103):        called from here: this.assign(v)
test.d(6):        called from here: v.integer(1L)
test.d(12):        called from here: foo()

The error is caused by issue 11510, and could be fixed by my compiler
enhancement fix.

I change this to dmd issue.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list