------- Comment #8 from kargl at gcc dot gnu dot org 2008-08-25 22:32 ------- (In reply to comment #7) > Whether it is the current standard or > not, it was legal years ago, and tons of legacy code (like this one) have it.
It has never been legal. Yes, legacy codes abuse the dummy argument syntax of X(1) to mean X(*), but it has never been legal to access X(2) if you declared the dummy argument as X(1). > Like Dominique in Comment #6, I'd urge you to fix this. If you re-read my original comment, you'll note that I stated that gcc should never ICE. This would imply that, yes, gcc should be fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37236