gcc-2.95.1, templates, internal compiler error

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sun Oct 31 23:03:00 GMT 1999


> here is a bug report for an internal compiler error, probably due to
> templates black magic.

Thanks for your bug report. gcc-2.95.2 still crashes; the mainline
compiler reports

refcontainer.cpp: In method `AutoUpdateMathsContainer<T, W, Item, Out>::AutoUpdateMathsContainer (const T &, const W &, const W &, const Out &, const Out &) [with T = long double, W = unsigned int, Item = AutoUpdateWeightItem, Out = long double]':
main.cpp:136:   instantiated from here
refcontainer.cpp:1006: initializer list being treated as compound expression
refcontainer.cpp:1006: conversion from `const unsigned int' to non-scalar type `template <{template default argument error}, {template default argument error}> class AutoUpdateWeightItem' requested

so it seems the bug has been fixed.

Regards,
Martin



More information about the Gcc-bugs mailing list