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