gccgo: dereference of nil pointer to zero-width type does not panic #31151
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
The Go spec says "For an operand x of pointer type *T, the pointer indirection *x denotes the variable of type T pointed to by x. If x is nil, an attempt to evaluate *x will cause a run-time panic."
This program correctly panics with cmd/compile, but does not with gccgo 8.0.0:
/cc @ianlancetaylor
The text was updated successfully, but these errors were encountered: