September 28, 2015

          Issue ID: 15125
           Summary: Explicit pure needed even though pure: at the top of
                    the file
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd

The code below fails to compile, saying that `throwMyException` can't call the MyException constructor because it's not pure, even though there's a `pure:` at the top. Adding `pure` explicitly to the constructor makes the error go away.


class MyException: Exception {
    this() {

void throwMyException() {
    throw new MyException();