[Bug c++/77367] Duck-typing error not detected when using CRTP

yuhang_tang at brown dot edu gcc-bugzilla@gcc.gnu.org
Wed Aug 24 14:07:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77367

Yu-Hang Tang <yuhang_tang at brown dot edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Yu-Hang Tang <yuhang_tang at brown dot edu> ---
I just realized that this resulted in Base::B() calling itself indefinitely and
hence is not a compiler bug. However maybe it would nice for GCC to throw out a
warning in this case?


More information about the Gcc-bugs mailing list