www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19066] New: [REG 2.081.0] Error: `const(Object)` is used as a


          Issue ID: 19066
           Summary: [REG 2.081.0] Error: `const(Object)` is used as a type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: doob me.com

The following code worked fine using DMD 2.080.0 but fails with 2.081.0 and up
to master (ed6386ada4549d70797c3d09e51e05756de174d4).

class Foo {}

struct Bar
    Foo Object;

Compiling this with 2.081.0 will give the following error message:

Error: `const(Object)` is used as a type

It does not include any location information which made this more difficult to
find a reduced test case for.

Jul 06 2018