[Bug c++/45374] template keyword incorrectness// failure to parse valid code.

2021-07-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45374 --- Comment #4 from Andrew Pinski --- clang rejects the code in a similar way as GCC does: :23:27: error: 'MyClass<6>::MyFunc' is not a member of class 'MyDerivedClass' return ptr->MyClass::MyFunc(); ^ :31:33: note: i

[Bug c++/45374] template keyword incorrectness// failure to parse valid code.

2010-08-23 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-23 22:01 --- (In reply to comment #2) > > BTW, Visual Studio (2010) has different behavior -- it accepts both of the > statements in main(), even though they require different parse trees. EDG (Comeau) also accepts them both. --

[Bug c++/45374] template keyword incorrectness// failure to parse valid code.

2010-08-23 Thread dpovey at gmail dot com
--- Comment #2 from dpovey at gmail dot com 2010-08-23 21:51 --- (In reply to comment #1) Yes you are right, but it is more than that bug, because I created an example where gcc wrongly *rejects* code that it should accept, as well as one where it wrongly accepts code that it should rej

[Bug c++/45374] template keyword incorrectness// failure to parse valid code.

2010-08-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-08-23 21:46 --- Looks related to PR 11814. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45374