This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Feb 2018 22:25:05 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-71662-4@http.gcc.gnu.org/bugzilla/>
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.