re PR c++/57548 (calling gnu multiversioned function at file scope causes ICE)
authorSriraman Tallam <tmsriram@google.com>
Sat, 8 Jun 2013 00:38:09 +0000 (00:38 +0000)
committerSriraman Tallam <tmsriram@gcc.gnu.org>
Sat, 8 Jun 2013 00:38:09 +0000 (00:38 +0000)
commit7f678e7ebc55b6bfef2c2a4f0bcaecc82c37ec4c
treeb0c18312b6bbddd50994cdd1ed939fba03796569
parentdac71dd7b5ccfc4d74e062bbd0c3aaf483ab3c9c
re PR c++/57548 (calling gnu multiversioned function at file scope causes ICE)

Fixes PR 57548.

2013-06-07  Sriraman Tallam  <tmsriram@google.com>

PR c++/57548
* cp/call.c (build_over_call):  Check if current_function_decl is
NULL.
* testsuite/g++.dg/ext/pr57548.C: New test.

From-SVN: r199842
gcc/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/pr57548.C [new file with mode: 0644]