public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43780]  New: [DR743] decltype cannot be used with the :: operator
@ 2010-04-17 23:44 faisalv at yahoo dot com
  2010-04-18  6:49 ` [Bug c++/43780] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: faisalv at yahoo dot com @ 2010-04-17 23:44 UTC (permalink / raw)
  To: gcc-bugs

gcc 4.5 in c++0x mode rejects the following valid code:

std::vector<int> vec;

decltype(vec)::value_type v = vec.first();

Per the DR above, decltype can be used with the :: operator.

This is similar to a bug report that someone posted for version 3.1, but my
experience is with 4.5.


-- 
           Summary: [DR743] decltype cannot be used with the :: operator
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: faisalv at yahoo dot com


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


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

* [Bug c++/43780] [DR743] decltype cannot be used with the :: operator
  2010-04-17 23:44 [Bug c++/43780] New: [DR743] decltype cannot be used with the :: operator faisalv at yahoo dot com
@ 2010-04-18  6:49 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-18  6:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-04-18 06:48 -------
Yes your experience is with 4.5.0 but there is no reason to file a new bug
about a known issue.  I don't know if the C++ defect report 743 have been voted
on yet or not (if not then PR 6709 is suspended because we don't know the final
decision of the standards committee).

*** This bug has been marked as a duplicate of 6709 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2010-04-18  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-17 23:44 [Bug c++/43780] New: [DR743] decltype cannot be used with the :: operator faisalv at yahoo dot com
2010-04-18  6:49 ` [Bug c++/43780] " pinskia 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).