This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Parser failed on code (taken from boost): ------------------------------- template <> struct property_value_dispatch<0> { template <class PropertyList, class T, class Tag> inline static typename property_value_end<PropertyList>::template result<T>::type& get_value(PropertyList& p, T* t, Tag tag) { return property_value_end<PropertyList>::get_value(p, t, tag); } template <class PropertyList, class T, class Tag> inline static const typename property_value_end<PropertyList>::template result<T>::type& const_get_value(const PropertyList& p, T* t, Tag tag) { return property_value_end<PropertyList>::const_get_value(p, t, tag); } }; ------------------------------- Parser messages: ------------------------------- newfile.cpp:4:7: unexpected token: inline newfile.cpp:4:14: unexpected token: static newfile.cpp:4:21: unexpected token: typename newfile.cpp:4:30: unexpected token: property_value_end newfile.cpp:4:49: unexpected token: PropertyList newfile.cpp:4:62: unexpected token: :: newfile.cpp:4:73: expecting LESSTHAN, found 'result' newfile.cpp:9:7: unexpected token: inline newfile.cpp:9:14: unexpected token: static newfile.cpp:9:21: unexpected token: const newfile.cpp:9:27: unexpected token: typename newfile.cpp:9:36: unexpected token: property_value_end newfile.cpp:9:55: unexpected token: PropertyList newfile.cpp:9:68: unexpected token: :: newfile.cpp:9:79: expecting LESSTHAN, found 'result' ------------------------------- User impact: - assert on parsing - no model for file
Any code declaration in the file after such construction do not in code model. So I think that it real P2 bug.
http://hg.netbeans.org/main/rev/1bad09fe2466
verified in dev build 200804230004
I've transplanted the changeset http://hg.netbeans.org/main/rev/1bad09fe2466 into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/35fb6e1c9c15 changeset: 77505:35fb6e1c9c15 user: Nick N. Krasilnikov <nnnnnk@netbeans.org> date: Fri Apr 11 18:19:44 2008 +0400 summary: fixed IZ 132404 : Parser failed on code taken from boost