c++/4316: Mistaken parsing error?

david.abrahams@rcn.com david.abrahams@rcn.com
Thu Sep 13 06:16:00 GMT 2001


>Number:         4316
>Category:       c++
>Synopsis:       Mistaken parsing error?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 06:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     david.abrahams@rcn.com
>Release:        unknown-1.0
>Organization:
>Environment:
cygwin/gcc-3.0.1
>Description:
The following snippet causes a syntax error, but I believe that's not correct behavior. I realize that body is a dependent name, but the appearance of ::execute() should be enough to disambiguate it as a type.

-Dave
--------

template<typename T>
struct her
{
    static int foo()
    {
        T::body::execute();
        return 0;
    }
};

>How-To-Repeat:
compile the above
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list