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]

[PATCH] Fix PR C++/26740, ICE taking the address of a bound member function


The problem here is that we were not marking the function as being used so we ICEd
down the road.


This patch marks the function as being used and fixes the ICE on the testcases
already in the testsuite (though they don't show the ICE because the testsuite
does not currently check for ICEs, that is being fixed).


OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

* typeck.c (build_unary_op): Mark the function as being used.



Attachment: t.diff.txt
Description: Text document


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