"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.7.0-src/tests/d2/dmd-testsuite/fail_compilation/imports/a13465.d" (5 Jan 2018, 732 Bytes) of package /linux/misc/ldc-1.7.0-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) D source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 module imports.a13465;
    2 
    3 template isMaskField()
    4 {
    5     import imports.a13465;
    6 }
    7 
    8 template isMatchingMaskField()
    9 {
   10     enum isMatchingMaskField = isMaskField!();
   11 
   12     /* Semantic analysis journey came from isMatchingMaskField!()
   13      *
   14      * TemplateInstance('isMaskField!T')->semantic()
   15      *  TemplateInstance('isMaskField!T')->semantic2() <---
   16      *          TemplateInstance::semantic() will run its semantic2() always.
   17      *   Import('import imports.ice1365a;')->semantic2()
   18      *    Module('imports.ice1365a')->semantic2()
   19      *     VarDeclaration('imports.ice1365a.isMatchingMaskField!().isMatchingMaskField')->semantic2() <---
   20      *          The type field is yet NULL during type inference, then ICE happens.
   21      */
   22 }