www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2177] New: dstress nocompile section get something should be in compile section?

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2177

           Summary: dstress nocompile section get something should be in
                    compile section?
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dstress
        AssignedTo: thomas-dloop kuehne.cn
        ReportedBy: davidl 126.com


nocompile has two different meanings, 
  1. the code shouldn't be compiled. 
  2. the code should be compilable but it *was* rejected by the compiler
maybe condition 2 should be moved to compile section?
like following:
kuehne\nocompile\b\bug_cgcs_354_A.d
kuehne\nocompile\b\bug_cgcs_354_B.d
kuehne\nocompile\b\bug_cod1_1656_B.d
kuehne\nocompile\b\bug_cod1_1656_H.d
kuehne\nocompile\b\bug_tocsym_142_A.d
kuehne\nocompile\b\bug_tocsym_142_B.d
kuehne\nocompile\b\bug_tocsym_142_C.d
kuehne\nocompile\b\bug_tocsym_142_D.d
kuehne\nocompile\b\bug_tocsym_142_E.d
kuehne\nocompile\b\bug_toir_170_A.d
kuehne\nocompile\b\bug_toir_170_B.d
kuehne\nocompile\b\bug_type_308_G.d
kuehne\nocompile\b\bug_type_308_H.d


-- 
Jun 25 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2177


kamm-removethis incasoftware.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from kamm-removethis incasoftware.de  2008-09-09 10:48
-------
No, I believe most of these contain real nocompile test cases:

 kuehne\nocompile\b\bug_cgcs_354_A.d
 kuehne\nocompile\b\bug_cgcs_354_B.d

Borderline case. casts really aren't specified well enough.
 kuehne\nocompile\b\bug_cod1_1656_B.d
 kuehne\nocompile\b\bug_cod1_1656_H.d

Not sure, I have a feeling the short-circuiting shouldn't circumvent checking the semantics...
 kuehne\nocompile\b\bug_tocsym_142_A.d
 kuehne\nocompile\b\bug_tocsym_142_B.d
 kuehne\nocompile\b\bug_tocsym_142_C.d
 kuehne\nocompile\b\bug_tocsym_142_D.d

Static function can't access this.member.
 kuehne\nocompile\b\bug_tocsym_142_E.d

S is not an instance.
 kuehne\nocompile\b\bug_toir_170_A.d
 kuehne\nocompile\b\bug_toir_170_B.d

Static function can't create nested class.
 kuehne\nocompile\b\bug_type_308_G.d
 kuehne\nocompile\b\bug_type_308_H.d

foo is not a static function. --
Sep 09 2008