[Bug c++/63198] decltype in template function declaration yields spurious error

2014-11-16 Thread thomas at famillebernardgouriou dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63198 --- Comment #6 from Thomas Bernard --- The assignment operator is an operator which always has side effects. That is why it is considered dependent during template definitions to prevent early instanciations of code. By adding a typename before

[Bug c++/63198] decltype in template function declaration yields spurious error

2014-11-07 Thread thomas at famillebernardgouriou dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63198 --- Comment #5 from Thomas Bernard --- I think I found the root of the problem. I'm preparing a patch.

[Bug c++/63198] decltype in template function declaration yields spurious error

2014-11-06 Thread thomas at famillebernardgouriou dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63198 --- Comment #4 from Thomas Bernard --- I investigated a bit further and I come up to the same conclusion as Bob Abeles. Having an assignment operator inside the decltype makes gcc believe the type is dependent. There are a couple of spots where

[Bug c++/63198] decltype in template function declaration yields spurious error

2014-11-05 Thread thomas at famillebernardgouriou dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63198 Thomas Bernard changed: What|Removed |Added CC||thomas@famillebernardgourio