http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033
--- Comment #12 from Marc Glisse <marc.glisse at normalesup dot org> 2012-04-17 11:59:12 UTC --- (In reply to comment #11) > If it is indeed a copy, you should move the code c-common.c and share it. The > C-family FEs should share as much code as possible. I agree on the principle. If more code was shared, C++ would already support this feature ;-) On the other hand, here I am copying a small block of code in the middle of a function. Making just that paragraph common wouldn't make much sense imho. Factoring most of (cp_)build_array_ref might make sense, but requires someone with a better understanding of the FEs, because there are slight differences that may or may not be relevant.