http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51150
Bug #: 51150 Summary: [C++11][4.6 Regression] ICE when result of -> initializes const variable of different type Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: jyass...@gcc.gnu.org Using gcc-4_6-branch@181398, the following program ICEs: $ cat test.ii class Clock { double Now(); }; template <class T> static void Foo(Clock* clock) { const int now = clock->Now(); } $ g++ -std=c++0x -fsyntax-only test.ii test.ii: In function ‘void Foo(Clock*)’: test.ii:5:30: internal compiler error: unexpected expression ‘clock->’ of kind arrow_expr Please submit a full bug report,