[Bug c++/35596] Runs out of virtual memory, with for_each
truedfx at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Sat Mar 15 18:17:00 GMT 2008
------- Comment #5 from truedfx at gentoo dot org 2008-03-15 18:17 -------
This is probably related to #28262. That bug's about
typedef void fn(int = 0);
typedef fn *fp;
void call(fp f) { f(); }
which used to be accepted (up to 4.2), but is now correctly rejected in 4.3.
This bug is really the template version of the same thing.
void fn(int = 0) {}
template<typename fp> void call(fp f) { f(); }
int main() { call(fn); }
This also used to be accepted up to 4.2, and is now rejected in 4.3.
--
truedfx at gentoo dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |truedfx at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35596
More information about the Gcc-bugs
mailing list