http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55992
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2013-01-15 22:01:16 UTC --- Reduced example (free of library stuff): template<unsigned N> struct A {}; template<unsigned MaxP> struct test { static constexpr unsigned pole(unsigned P) { return P>MaxP? MaxP:P; } template<unsigned P> using my_array = A<pole(P)>; template<unsigned P> void do_something(my_array<P> const&, my_array<P>); }; The problem also occurs in gcc 4.8.0 20130113 (experimental)