[Bug c++/28785] internal compiler error
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-09-03 05:39 --- Fixed in 4.1.0. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Keywords||ice-on-invalid-code Resolution||FIXED Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785
[Bug c++/28785] internal compiler error
--- Comment #1 from smirolo at hotmail dot com 2006-08-20 18:57 --- Created an attachment (id=12107) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12107action=view) .ii and .log (stdout/stderr) files compilation command line: g++ -v --save-temps -g -O0 -I../../include -I. -I../include -I/Volumes/Home/Users/smirolo/workarea/ootbc/mini/include ../src/viewAsGraphTest.cc -o viewAsGraphTest viewAsGraphTest.log 21 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785
[Bug c++/28785] internal compiler error
--- Comment #2 from smirolo at hotmail dot com 2006-08-20 19:06 --- Actually, I have the following two definitions: friend vertex_descriptor source( const edge_descriptor e, const viewAsGraph g ); friend const vertex_descriptor source( const edge_descriptor e, const viewAsGraph g ); This is an error as both function have the same prototype according to C++. None the less, the compiler should report an error message and not an internal error in my opinion. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785
[Bug c++/28785] internal compiler error
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-21 01:27 --- This works in 4.1.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785
[Bug c++/28785] internal compiler error
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-08-21 01:31 --- (In reply to comment #3) This works in 4.1.0. Meaning it does not ICE. ../../include/viewAsGraph.hh: In instantiation of viewAsGraphstd::vectoredgeTest, std::allocatoredgeTest : ../src/viewAsGraphTest.cc:21: instantiated from here ../../include/viewAsGraph.hh:153: error: ambiguous template specialization source for const int source(const edgeTest, const viewAsGraphstd::vectoredgeTest, std::allocatoredgeTest ) ../../include/viewAsGraph.hh:159: error: ambiguous template specialization target for const int target(const edgeTest, const viewAsGraphstd::vectoredgeTest, std::allocatoredgeTest ) ../../include/viewAsGraph.hh:166: error: template-id put for void put(boost::default_color_type*, const int, boost::default_color_type) does not match any template declaration ../../include/viewAsGraph.hh:169: error: template-id get for boost::default_color_type get(boost::default_color_type*, const int) does not match any template declaration ../src/viewAsGraphTest.cc: In function int main(int, char**): ../src/viewAsGraphTest.cc:22: error: call of overloaded source(edgeTest, main(int, char**)::graphType) is ambiguous -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785
[Bug c++/28785] internal compiler error
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-21 05:15 --- Note since this is an Apple compiler you found this bug in, you should have reported this to Apple first and not to the FSF. Specificially you did not read the output the compiler gave: See URL:http://developer.apple.com/bugreporter for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785