https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70107

--- Comment #3 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Also, on latest GCC 5 and GCC 4.9, the front end objects:

wschmidt@genoa:~/src$ $GCC_INSTALL/bin/g++ -w -c -mcpu=power8 pr70107.ii
pr70107.ii:3:46: error: expected type-specifier before 'decltype'
   auto operator()(T Base::*, Derived ref) -> decltype(ref);
                                              ^
pr70107.ii:3:46: error: expected initializer before 'decltype'
pr70107.ii: In function 'void test_b12(Functor)':
pr70107.ii:8:9: error: expected nested-name-specifier before 'ClassFunc'
   using ClassFunc = Signature TestClass::*;
         ^
pr70107.ii:9:3: error: 'ClassFunc' was not declared in this scope
   ClassFunc b;
   ^
pr70107.ii:10:5: error: 'b' was not declared in this scope
   a(b, f);
     ^
wschmidt@genoa:~/src$

Reply via email to