Avoid segfault in relval 50102 for gcc4.9.0
Merge pull request #2907 from wmtan/AvoidSegfaultInRelval50102Forgcc490

gcc 4.9.0 -- Avoid segfault in relval 50102 for gcc4.9.0