This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54126] ICE on constexpr move ctor with const ref type instead of error
- From: "morpheby at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Jul 2012 14:56:31 +0000
- Subject: [Bug c++/54126] ICE on constexpr move ctor with const ref type instead of error
- Auto-submitted: auto-generated
- References: <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}
});
}