http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47020

           Summary: [4.6 Regression] [C++0x] ICE: unexpected expression
                    'foo' of kind overload when storing address of
                    overloaded function
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
                CC: ja...@gcc.gnu.org


------ testcase.C ------
bool foo ();
bool foo (int);

struct S {
  bool (*foo) (int);
} s = {
  foo
};
-----------------------

Compiler output:
$ gcc -std=c++0x testcase.C 
testcase.C:8:1: internal compiler error: unexpected expression 'foo' of kind
overload
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r168061 - crash
4.5 r168062 - OK

Reply via email to