www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18828] New: [-betterC] helpless error in object.d


          Issue ID: 18828
           Summary: [-betterC] helpless error in object.d
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: flamaros.xavier gmail.com

I am trying do a custom opengl32.dll, all my code is already tagged with  nogc,
but when I enable the -betterC option I get the following error that isn't
really helpful. 
The error comes from the function destroy implementation, but I can't figure
out from where it is called in my code.

------ Début de la génération : Projet : opengl32, Configuration : debug
Building D:\Dev\Personal\ToVulkanPoc\bin\opengl32.dll...
D:\Softs\D\dmd2\windows\bin\..\..\src\druntime\import\object.d(3035): Error:
`TypeInfo` cannot be used with -betterC
Building D:\Dev\Personal\ToVulkanPoc\bin\opengl32.dll failed!
Details saved as
========== Génération : 0 a réussi, 1 a échoué, 1 mis à jour, 0 a été

May 04 2018