This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17693] use typedef name in diagnostic
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Oct 2011 14:14:18 +0000
- Subject: [Bug c++/17693] use typedef name in diagnostic
- Auto-submitted: auto-generated
- References: <bug-17693-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17693
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-22 14:14:18 UTC ---
GCC 4.7 does away with the typedefs completely:
pr17693.cc: In instantiation of âvoid A::g() [with T = int]â:
pr17693.cc:13:16: required from here
pr17693.cc:8:5: error: âaâ is not a member of âintâ
pr17693.cc: In instantiation of âvoid B::f(T, U) [with T = int; U = char]â:
pr17693.cc:32:35: required from here
pr17693.cc:27:5: error: invalid conversion from âcharâ to âvoid*â
[-fpermissive]
pr17693.cc:21:8: error: initializing argument 1 of âvoid B::g(void*,
B::mysize_t)â [-fpermissive]
which in this case doesn't look so bad, but with very deeply nested stuff, it
probably looks awful.