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
When gccgoimporter tries to parse this const in gccgoimporter.(*parser).parseConstValue, it appears to only expect a constant string, literal, int, or float on the RHS of a const assignment, so we get the error:
quentinmit
changed the title
gccgoimporter: type conversion expression not handled
go/internal/gccgoimporter: type conversion expression not handled
Nov 18, 2016
The parser in package gccgoimporter does not seem to handle type conversion expressions exported by gccgo. For example, the following constant:
gets exported by gccgo in a .gox file as a const value wrapped in a type conversion:
When gccgoimporter tries to parse this const in gccgoimporter.(*parser).parseConstValue, it appears to only expect a constant string, literal, int, or float on the RHS of a const assignment, so we get the error:
The importer in the gccgo frontend, however, handles this type conversion properly (see relevant source snippet here).
The text was updated successfully, but these errors were encountered: