http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48409

           Summary: const qualifier for function type‏
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zeratul...@hotmail.com


GCC compiles the following code without error:

template<typename>
struct S;

template <>
struct S<void()>;

template <>
struct S<void() const>;


I believe this code is invalid. Both Comeau C++ and clang give the following
error for it:

error: type qualifier is not allowed on this function
struct S<void() const>;

Reply via email to