This is the mail archive of the gcc-patches@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] |
Unfortunately, I think this will not work correctly in the case of -fpermissive, since in that case the code above this point will have issued a pedwarn, but that will just be a warning, not an error. So, I bet this case:
template <typename> void f() { return g(); }
would be mishandled by your patch, when compiled with -fpermissive.
So, sadly, I think we need to find some other solution...
Cheers, Lee.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |