[Bug c++/58080] internal compiler error, decltype in function declaration (for SFINAE purposes)

evgeny.panasyuk at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Aug 4 20:56:00 GMT 2013


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

Evgeny Panasyuk <evgeny.panasyuk at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |evgeny.panasyuk at gmail dot com

--- Comment #6 from Evgeny Panasyuk <evgeny.panasyuk at gmail dot com> ---
Several variations of original code shows differences in results of GCC 4.8.1
and Clang (3.4 trunk 184460):

Case 1: Both compile OK, but different overloads are selected
GCC:
http://coliru.stacked-crooked.com/view?id=58ca6a0268281fda26a36db4e5d50bbd-3ea7fded292aff0f460de2fb646b584a
Clang:
http://coliru.stacked-crooked.com/view?id=58ca6a0268281fda26a36db4e5d50bbd-80c199070668c72f0a5e12e38239d72b

Case 2: Clang compiles OK, without errors, while GCC shows "Internal compiler
error"
GCC:
http://coliru.stacked-crooked.com/view?id=7defec6f0288a8d72255a652e1baf439-3ea7fded292aff0f460de2fb646b584a
Clang:
http://coliru.stacked-crooked.com/view?id=7defec6f0288a8d72255a652e1baf439-80c199070668c72f0a5e12e38239d72b



More information about the Gcc-bugs mailing list