compiler: fix infinite recursion in string constant evaluation.
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 16 Apr 2012 23:05:40 +0000 (23:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 16 Apr 2012 23:05:40 +0000 (23:05 +0000)
commit2dfc736cc774d78991712e80940446fc448d03ac
tree2e167b8be082bf80ff042e1cedcf1a1f32f13286
parent4a1016814c2121920459d13ccb4c841b3a537951
compiler: 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).

From-SVN: r186511
gcc/go/gofrontend/expressions.cc