This is the mail archive of the gcc@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]

Re: Bug in C++ FE?


On 10/21/07, Rene Buergel <rbuergel@htwm.de> wrote:
> When i'm trying to compile the following Code:

>             method = &X<T>::some_func<int>;

You forgot the template keyword as X<T> is dependent :
method = &X<T>::template some_func<int>;

There is a defect report against the C++ standard about X<T> being
dependent inside the class itself.

-- Pinski


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