Descriptioncompiler: fix infinite recursion in string constant evaluation.
Fixes compilation of incorrect code:
const f, g = g, f
func S() []byte { return []byte(f) }
The problem was already handled for numerical constants.
Part of issue 3186 (go).
Patch Set 1 #Patch Set 2 : diff -r 5016046ebbfe https://code.google.com/p/gofrontend/ #Patch Set 3 : diff -r 5016046ebbfe https://code.google.com/p/gofrontend/ #MessagesTotal messages: 4
|