* Account creation on GCC bug tracker (or issue report)
@ 2017-06-12 8:44 X Ryl
0 siblings, 0 replies; only message in thread
From: X Ryl @ 2017-06-12 8:44 UTC (permalink / raw)
To: overseers
Hi,
I'm not able to create an account on the GCC bug tracker.
I'd like to report a bug with G++7.1 that does not accept this code anymore:
template <int line, typename FuncSig, FuncSig f>
struct HelperWrapper;
// [...]
template <int line, typename Ret, Ret (&Func)()>
struct HelperWrapper<line, Ret (&)(), Func>
{
static inline int WrapFuncT(const int)
{
return 0; // Changed
}
};
// Unary
template <int line, typename Ret, typename Arg1, Ret (&Func)(Arg1)>
struct HelperWrapper<line, Ret (&)(Arg1), Func>
{
static inline int WrapFuncT(const int)
{
return 1; // Changed
}
};
// Binary
template <int line, typename Ret, typename Arg1, typename Arg2, Ret
(&Func)(Arg1, Arg2)>
struct HelperWrapper<line, Ret (&)(Arg1, Arg2), Func>
{
static inline int WrapFuncT(const int)
{
return 2; // Changed
}
};
Rejected with error:
a.hpp:683:16: error: partial specialization 'struct
Type::Implementation::HelperWrapper<line, Ret (&)(), Func>' is not
more specialized than [-fpermissive]
struct HelperWrapper<line, Ret (&)(void), Func>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.hpp:640:16: note: primary template 'template<int line, class
FuncSig, FuncSig f> struct Type::Implementation::HelperWrapper'
struct HelperWrapper;
^~~~~~~~~~~~~
a.hpp:695:16: error: partial specialization 'struct
Type::Implementation::HelperWrapper<line, Ret (&)(Arg1), Func>' is not
more specialized than [-fpermissive]
struct HelperWrapper<line, Ret (&)(Arg1), Func>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.hpp:640:16: note: primary template 'template<int line, class
FuncSig, FuncSig f> struct Type::Implementation::HelperWrapper'
struct HelperWrapper;
^~~~~~~~~~~~~
a.hpp:707:16: error: partial specialization 'struct
Type::Implementation::HelperWrapper<line, Ret (&)(Arg1, Arg2), Func>'
is not more specialized than [-fpermissive]
struct HelperWrapper<line, Ret (&)(Arg1, Arg2), Func>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.hpp:640:16: note: primary template 'template<int line, class
FuncSig, FuncSig f> struct Type::Implementation::HelperWrapper'
struct HelperWrapper;
While previous version used to accept this fine, and all other C++
compiler are ok with it
I've created a godbolt.org/g/uW3D7O example where you can test all
other compilers.
What is the right way to report a bug ?
Best regards,
Cyril RUSSO
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-12 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 8:44 Account creation on GCC bug tracker (or issue report) X Ryl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).