public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56438] New: [4.8 regression] ICE in value_dependent_expression_p, at cp/pt.c:19551
@ 2013-02-24 23:56 manisandro at gmail dot com
  2013-02-25  8:10 ` [Bug c++/56438] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: manisandro at gmail dot com @ 2013-02-24 23:56 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56438

             Bug #: 56438
           Summary: [4.8 regression] ICE in value_dependent_expression_p,
                    at cp/pt.c:19551
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: manisandro@gmail.com


gcc version 4.8.0 20130220 (Red Hat 4.8.0-0.14) (GCC)

g++ -c ice.cc 
ice.cc: In function ‘void foo()’:
ice.cc:19:25: internal compiler error: in value_dependent_expression_p, at
cp/pt.c:19551
   a << bar(b.size(), C());
                         ^
========== ice.cc ==========
struct A { };
A& operator<<(A&, const char*);

struct B {
  int size();
};

struct C { };

template <class S, class T>
S bar(const S& s, const T& t) {
  return s;
}

template<class S, class T>
void foo() {
  A a;
  B b;
  a << bar(b.size(), C());
}
===========================

gcc version 4.7.2 20121109 (Red Hat 4.7.2-9) (GCC), gives get the expected
result
g++ -c ice.cc 
ice.cc: In function ‘void foo()’:
ice.cc:19:25: error: no match for ‘operator<<’ in ‘a << bar(b.B::size(), C())’
ice.cc:19:25: note: candidate is:
ice.cc:2:4: note: A& operator<<(A&, const char*) <near match>
ice.cc:2:4: note:   no known conversion for argument 2 from ‘int’ to ‘const
char*’


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

end of thread, other threads:[~2014-03-01  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-24 23:56 [Bug c++/56438] New: [4.8 regression] ICE in value_dependent_expression_p, at cp/pt.c:19551 manisandro at gmail dot com
2013-02-25  8:10 ` [Bug c++/56438] " jakub at gcc dot gnu.org
2013-02-25  8:17 ` jakub at gcc dot gnu.org
2013-02-26  4:28 ` jason at gcc dot gnu.org
2013-02-26  4:30 ` jason at gcc dot gnu.org
2014-03-01  9:58 ` trippels at gcc dot gnu.org

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).