Closed
Description
The following program does not read x
in an unassigned state, but currently the front end and the analyzer report the use of x
in the initializer of y
as a definitely unassigned read. The laziness of late initializers does not seem to be taken into account in the flow analysis.
main() {
late int x;
late int y = x;
x = 3;
y;
}