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

Anuj Mohite <anujmohite001 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anujmohite001 at gmail dot com

--- Comment #4 from Anuj Mohite <anujmohite001 at gmail dot com> ---
can we split the original error message into two separate calls to gfc_error()
fuction. file: fortran/symbol.cc

Before changes:

gfc_error ("%s procedure at %L is already declared as %s "
           "procedure. \nF2008: A pointer function assignment "
           "is ambiguous if it is the first executable statement "
           "after the specification block. Please add any other "
           "kind of executable statement before it. FIXME",

After changes:

// Main error message
gfc_error ("%s procedure at %L is already declared as %s procedure",
           gfc_code2string(procedures, t), where,
           gfc_code2string(procedures, attr->proc));

// Additional information for F2008 standard
gfc_error("A pointer function assignment is ambiguous if it is the first "
           "executable statement after the specification block. Please add "
           "any other kind of executable statement before it.");

Reply via email to