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++/17693] use typedef name in diagnostic


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.


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