[Bug c++/60046] [4.7/4.8/4.9 Regression] internal compiler error: in nothrow_spec_p, at cp/except.c:1280
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 4 11:21:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60046
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r174820. Reduced testcase -std=c++11:
constexpr bool foo () { return noexcept (true); }
template <typename T>
struct V
{
void bar (V &) noexcept (foo ()) {}
};
template <typename T>
struct W : public V <int>
{
void bar (W &x) { V <int>::bar (x); }
};
int
main ()
{
W <int> a, b;
a.bar (b);
}
More information about the Gcc-bugs
mailing list