From: SourceForge.net <no...@so...> - 2004-02-17 02:47:17
|
Bugs item #898455, was opened at 2004-02-17 03:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=898455&group_id=2435 Category: gcc Group: Known bugs Status: Open Resolution: None Priority: 5 Submitted By: Gonzalo Matamala (gonmator) Assigned to: Danny Smith (dannysmith) Summary: g++ ICE compiling function member template in template Initial Comment: MinGW 2.0.0 OS version: Windows 2000 gcc version: gcc version 3.2 (mingw special 20020817-1) -- The invokation: gcc -save-temps d:main.cpp -- The output: d:main.cpp: In function `int main()': d:main.cpp:22: Internal compiler error in tsubst_decl, at cp/pt.c:5648 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. -- The error ocurr when a class template with function template argument has a template function member. I think is gcc bug. The test source code is very short: template <int i> void foo() {} template<void (F)()> class Bar { public: template<typename T> Bar& g(T) { return *this; } }; int main() { Bar<foo<1> > b; b.g(2); return 0; } Gonzalo. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=898455&group_id=2435 |