public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51150] New: [C++11][4.6 Regression] ICE when result of -> initializes const variable of different type
@ 2011-11-16  5:31 jyasskin at gcc dot gnu.org
  2011-11-16  5:37 ` [Bug c++/51150] [C++11][4.6/4.7 " jyasskin at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jyasskin at gcc dot gnu.org @ 2011-11-16  5:31 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: jyasskin@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,


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-11-18 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16  5:31 [Bug c++/51150] New: [C++11][4.6 Regression] ICE when result of -> initializes const variable of different type jyasskin at gcc dot gnu.org
2011-11-16  5:37 ` [Bug c++/51150] [C++11][4.6/4.7 " jyasskin at gcc dot gnu.org
2011-11-16  6:14 ` jyasskin at gcc dot gnu.org
2011-11-16 13:43 ` paolo.carlini at oracle dot com
2011-11-16 13:51 ` paolo.carlini at oracle dot com
2011-11-18 14:08 ` paolo.carlini at oracle dot com
2011-11-18 15:09 ` paolo.carlini at oracle dot com
2011-11-18 15:52 ` paolo at gcc dot gnu.org
2011-11-18 15:54 ` paolo at gcc dot gnu.org
2011-11-18 16:03 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).