www.digitalmars.com         C & C++   DMDScript  

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

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

          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
Win32
------
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
"file://D:\Dev\Personal\ToVulkanPoc\opengl32\.dub\obj\debug\dummy\dummy\opengl32\opengl32.buildlog.html"
========== Génération : 0 a réussi, 1 a échoué, 1 mis à jour, 0 a été
ignoré
==========

--
May 04 2018