https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64222

            Bug ID: 64222
           Summary: [5 Regression] error: ‘__FUNCTION__’ was not declared
                    in this scope
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

trippels@gcc20 ~ % cat apply_control_data_updates.ii
class A
{
public:
  A (const char *, void *);
};
class B
{
public:
  B (A);
};
void
fn1 ()
{
  B a (A (__FUNCTION__, 0));
}

trippels@gcc20 ~ % g++ -c apply_control_data_updates.ii
apply_control_data_updates.ii: In function ‘void fn1()’:
apply_control_data_updates.ii:14:11: error: ‘__FUNCTION__’ was not declared in
this scope
   B a (A (__FUNCTION__, 0));
           ^

Reply via email to