re PR go/49889 (Calling a function whose name is obscured by a local variable does...
authorNick Clifton <nickc@redhat.com>
Wed, 27 Apr 2016 11:29:20 +0000 (11:29 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 27 Apr 2016 11:29:20 +0000 (11:29 +0000)
commit9ec5d66b5daec672f1194f1e15a31a7636915c87
treec69639793f1984427b5b0b349f8a3377588e2da7
parent2e885a6f7ce629d6517c2bf8dc14824be8e93987
re PR go/49889 (Calling a function whose name is obscured by a local variable does not produce an error)

PR middle-end/49889
gcc * varasm.c (merge_weak): Generate an error if an attempt is made
to convert a non-weak static function into a weak, public function.

testsuite * gcc.dg/pr49889.c: New test.

From-SVN: r235484
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr49899.c [new file with mode: 0644]
gcc/varasm.c