This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/7110: parse error when declare function pointer returning T in class T


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]