public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "morpheby at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54126] ICE on constexpr move ctor with const ref type instead of error
Date: Mon, 30 Jul 2012 14:56:00 -0000	[thread overview]
Message-ID: <bug-54126-4-Qyc247r8ua@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54126-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Ilya Mikhaltsou <morpheby at gmail dot com> 2012-07-30 14:56:31 UTC ---
Reduced source:

namespace std {
template<class _E> class initializer_list {
};
}
using namespace std;

class ClassB {
public:
   constexpr ClassB(int x) {}
};

template<class T1> struct ClassA {
   template<class U1> constexpr ClassA(U1 &&a)
      : a_(a) {}
   T1 a_;
};

void f(std::initializer_list<ClassA<const ClassB&>> l) {
   f({
      {1}
   });
}


  parent reply	other threads:[~2012-07-30 14:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30 14:17 [Bug c++/54126] New: " morpheby at gmail dot com
2012-07-30 14:22 ` [Bug c++/54126] " redi at gcc dot gnu.org
2012-07-30 14:33 ` morpheby at gmail dot com
2012-07-30 14:53 ` redi at gcc dot gnu.org
2012-07-30 14:56 ` morpheby at gmail dot com [this message]
2013-02-13  7:29 ` freddie_chopin at op dot pl
2013-02-13 12:20 ` morpheby at gmail dot com
2014-08-29 13:27 ` paolo.carlini at oracle dot com

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=bug-54126-4-Qyc247r8ua@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).