public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
From: X Ryl <boite.pour.spam@gmail.com>
To: overseers@gcc.gnu.org
Subject: Account creation on GCC bug tracker (or issue report)
Date: Mon, 12 Jun 2017 08:44:00 -0000	[thread overview]
Message-ID: <CAHwPpv6Y+Gm6YvYo2iUeVMQJA7_k52vRvY2-yMMe25pTrrkLoQ@mail.gmail.com> (raw)

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

                 reply	other threads:[~2017-06-12  8:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHwPpv6Y+Gm6YvYo2iUeVMQJA7_k52vRvY2-yMMe25pTrrkLoQ@mail.gmail.com \
    --to=boite.pour.spam@gmail.com \
    --cc=overseers@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).