This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71662] [6/7/8 Regression][DR 1485] ICE on invalid C++11 code with unqualified name look up: in tsubst_copy, at cp/pt.c:14010


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This seems fixed in trunk, we simply reject the code without ICEing. While
reviewing this bug I noticed once more the nit that -Wreturn-type enabled by
default means that in such cases we emit a redundant warning:

71662.C:14:10: error: ‘e’ was not declared in this scope
   return e;
          ^
71662.C: In instantiation of ‘A<T>::E A<T>::h() [with T = int]’:
71662.C:8:23:   required from here
71662.C:15:1: warning: no return statement in function returning non-void
[-Wreturn-type]

but that seems an unrelated issue, really. Thus I mean to commit the testcase
and remove the 8 Regression marker.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]