This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7110: parse error when declare function pointer returning T in class T
- From: rdabrowa at poczta dot onet dot pl
- To: gcc-gnats at gcc dot gnu dot org
- Date: 24 Jun 2002 21:47:06 -0000
- Subject: c++/7110: parse error when declare function pointer returning T in class T
- Reply-to: rdabrowa at poczta dot onet dot pl
>Number: 7110
>Category: c++
>Synopsis: parse error when declare function pointer returning T in class T
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Jun 24 14:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Rafal Dabrowa
>Release: vary (2.96, 3.1)
>Organization:
>Environment:
>Description:
compiler announces parse error at declaration
of pointer to function, which returns an object of
type being declared
>How-To-Repeat:
compile the following code:
class A {
A (*m_pf)();
typedef A (*T_FUN)();
};
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: