1--TEST--
2Self-referencing constant expression (part of a constant AST)
3--FILE--
4<?php
5class A {
6   const FOO = [self::BAR];
7   const BAR = [self::FOO];
8}
9var_dump(A::FOO);
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Cannot declare self-referencing constant 'self::BAR' in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16