c++/4862 and PRs marked (or not) as parser bugs

Paolo Carlini pcarlini@unitus.it
Sat Feb 2 02:57:00 GMT 2002


Hi,

c++/4862 is about this kind of situation:

////////////
class A
{
public:
    template<typename T>
    void func() {}
};

template<typename T>
void doit()
{
    A a;
    a.func<T>();
};
////////////

as well known, the current parser must be helped changing line 12 to:

    a.template func<T>();

What seems to me strange, is that the *new* parser must *also* be helped like
this (not EDG front ends). Is this known? Should c++/4862 and, perhaps, similar
situations, be marked as "New-parser bug" in GNATS?

Cheers,
Paolo.



More information about the Gcc mailing list