Constructing the AST has failed: internal error during typechecking. Please file a bug report at https://github.com/viperproject/silver. Error "java.lang.RuntimeException: Unexpected node PDefine(List(),PReserved(Define),PIdnDef(inner_macro),None,PIntLit(42)) found" at "viper.silver.parser.TypeChecker.check(Resolver.scala:258)" (playground.vpr@2.1--11.2)
Nested macro declarations actually shouldn't be allowed (I'll update the sil-syntax file separately). Since PR #795, nested macro declarations are rejected by the parser.
Viper-Extension tells me to report this bug:
Using the following Viper Program
I get the error message:
According to this specification: https://github.com/viperproject/silver/blob/master/documentation/syntax/sil-syntax.txt one should be able to define a macro inside another macro.