You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
-fsanitize=undefined reports
/home/dfc/go/src/cmd/gc/typecheck.c:3326:15: runtime error: member access within null
pointer of type 'Type' (aka 'struct Type')
/home/dfc/go/src/cmd/gc/typecheck.c:3326:15: runtime error: load of null pointer of type
'uchar' (aka 'unsigned char')
typecheckdeftype will set n->type = T if an error occurs, but line 3326 tries to
access members of n->type unconditionally.
This only happens when compilation is a failure, but should probably be fixed.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
The text was updated successfully, but these errors were encountered:
Don't care much about undefined C unless they are causing real problems. 8527 was not
undefined C. All this C code is going away. The less time we spend on it, the sooner
that happens.
rsc
changed the title
cmd/gc: typecheck.c illegal member access to n->type member when n->type is nil
cmd/compile: typecheck.c illegal member access to n->type member when n->type is nil
Jun 8, 2015
The text was updated successfully, but these errors were encountered: