public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66548] New: Invalid class member access expression in decltype sometimes accepted
@ 2015-06-16  0:26 rs2740 at gmail dot com
  2015-06-16  0:27 ` [Bug c++/66548] " rs2740 at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: rs2740 at gmail dot com @ 2015-06-16  0:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66548

            Bug ID: 66548
           Summary: Invalid class member access expression in decltype
                    sometimes accepted
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rs2740 at gmail dot com
  Target Milestone: ---

The following code is accepted by GCC 5.1 and 6.0.0 20150615 (experimental),
even though it is plainly invalid:

struct Meow {};

int main(){
    decltype(Meow.purr()) d;
}

GCC 4.9.2 correctly rejects this code.


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

* [Bug c++/66548] Invalid class member access expression in decltype sometimes accepted
  2015-06-16  0:26 [Bug c++/66548] New: Invalid class member access expression in decltype sometimes accepted rs2740 at gmail dot com
@ 2015-06-16  0:27 ` rs2740 at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: rs2740 at gmail dot com @ 2015-06-16  0:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66548

--- Comment #1 from TC <rs2740 at gmail dot com> ---
See also http://stackoverflow.com/q/30856911/2756719


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

end of thread, other threads:[~2015-06-16  0:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16  0:26 [Bug c++/66548] New: Invalid class member access expression in decltype sometimes accepted rs2740 at gmail dot com
2015-06-16  0:27 ` [Bug c++/66548] " rs2740 at gmail 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).