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]

c++/4316: Mistaken parsing error?



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


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