public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45282]  New: wrong decltype result for .*
@ 2010-08-13 20:51 jason at gcc dot gnu dot org
  2010-08-13 20:51 ` [Bug c++/45282] " jason at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-08-13 20:51 UTC (permalink / raw)
  To: gcc-bugs

This testcase should compile without error, as a .* is an rvalue if the LHS is
an rvalue.

struct A { int i; };
int A::*ipm = &A::i;

template <class T, class U> class assert_same_type;
template <class T> class assert_same_type<T,T> { };

assert_same_type<decltype(A().*ipm),int> x2;


-- 
           Summary: wrong decltype result for .*
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org


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


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

end of thread, other threads:[~2013-03-27 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45282-4@http.gcc.gnu.org/bugzilla/>
2011-08-05 13:54 ` [Bug c++/45282] wrong decltype result for .* jason at gcc dot gnu.org
2013-03-26 18:08 ` jason at gcc dot gnu.org
2013-03-27 10:03 ` paolo.carlini at oracle dot com
2010-08-13 20:51 [Bug c++/45282] New: " jason at gcc dot gnu dot org
2010-08-13 20:51 ` [Bug c++/45282] " jason at gcc dot gnu dot 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).