public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
@ 2007-02-17 20:02 ` pinskia at gcc dot gnu dot org
2007-08-12 2:05 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-17 20:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-02-17 20:02 -------
*** Bug 30837 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
2007-02-17 20:02 ` [Bug c++/6709] typeof() cannot be used with the :: operator pinskia at gcc dot gnu dot org
@ 2007-08-12 2:05 ` pinskia at gcc dot gnu dot org
2010-03-08 14:29 ` bangerth at gmail dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-12 2:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2007-08-12 02:05 -------
Hmm, I wonder what the current draft of C++0x says of decltype with this
respect (right now we reject it).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
2007-02-17 20:02 ` [Bug c++/6709] typeof() cannot be used with the :: operator pinskia at gcc dot gnu dot org
2007-08-12 2:05 ` pinskia at gcc dot gnu dot org
@ 2010-03-08 14:29 ` bangerth at gmail dot com
2010-03-08 14:40 ` redi at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: bangerth at gmail dot com @ 2010-03-08 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from bangerth at gmail dot com 2010-03-08 14:29 -------
*** Bug 43285 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2010-03-08 14:29 ` bangerth at gmail dot com
@ 2010-03-08 14:40 ` redi at gcc dot gnu dot org
2010-03-08 14:46 ` redi at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-03-08 14:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from redi at gcc dot gnu dot org 2010-03-08 14:40 -------
(In reply to comment #8)
> Hmm, I wonder what the current draft of C++0x says of decltype with this
> respect (right now we reject it).
>
In Bug 43285 Comment 1 I said that I think decltype is invalid in this context,
which would make this a documentation bug for C++.
In the C++0x grammar:
simple-type-specifier:
::_opt nested-name-specifier_opt type-name
...
decltype ( expression )
nested-name-specifier:
type-name ::
namespace-name ::
nested-name-specifier identifier ::
nested-name-specifier template_opt simple-template-id ::
type-name:
class-name
enum-name
typedef-name
So decltype(expression) cannot appear in a nested-name-specifier
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2010-03-08 14:40 ` redi at gcc dot gnu dot org
@ 2010-03-08 14:46 ` redi at gcc dot gnu dot org
2010-03-08 16:00 ` manu at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-03-08 14:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from redi at gcc dot gnu dot org 2010-03-08 14:46 -------
(In reply to comment #4)
> Just noticed this bug myself. You can work around it by creating
> a temporary typedef. E.g.,
>
> typedef typeof(obj) T;
> T::size_type s;
>
> Still annoying though.
This workaround is required for decltype, I don't see why typeof should be any
different.
The reason is that decltype(obj) doesn't declare a new type-name, it is only a
simple-type-specifier, which cannot appear in a nested-name-specifier.
The typedef workaround introduces a new type-name, which is allowed in a
nested-name-specifier.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2010-03-08 14:46 ` redi at gcc dot gnu dot org
@ 2010-03-08 16:00 ` manu at gcc dot gnu dot org
2010-03-08 16:10 ` [Bug c++/6709] [DR743] " redi at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-03-08 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from manu at gcc dot gnu dot org 2010-03-08 15:59 -------
*** Bug 43285 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] [DR743] typeof() cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2010-03-08 16:00 ` manu at gcc dot gnu dot org
@ 2010-03-08 16:10 ` redi at gcc dot gnu dot org
2010-04-18 6:48 ` [Bug c++/6709] [DR743] decltype " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-03-08 16:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from redi at gcc dot gnu dot org 2010-03-08 16:10 -------
the decltype issue is
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#743
the proposed change is in
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3031.pdf
suspending ...
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
Summary|typeof() cannot be used with|[DR743] typeof() cannot be
|the :: operator |used with the :: operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] [DR743] decltype cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2010-03-08 16:10 ` [Bug c++/6709] [DR743] " redi at gcc dot gnu dot org
@ 2010-04-18 6:48 ` pinskia at gcc dot gnu dot org
2010-04-18 12:56 ` faisalv at yahoo dot com
2010-04-19 9:38 ` redi at gcc dot gnu dot org
9 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-18 6:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2010-04-18 06:48 -------
*** Bug 43780 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |faisalv at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] [DR743] decltype cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2010-04-18 6:48 ` [Bug c++/6709] [DR743] decltype " pinskia at gcc dot gnu dot org
@ 2010-04-18 12:56 ` faisalv at yahoo dot com
2010-04-19 9:38 ` redi at gcc dot gnu dot org
9 siblings, 0 replies; 14+ messages in thread
From: faisalv at yahoo dot com @ 2010-04-18 12:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from faisalv at yahoo dot com 2010-04-18 12:56 -------
I had (In reply to comment #14)
> *** Bug 43780 has been marked as a duplicate of this bug. ***
>
The DR 743 has been voted into FCD (CD2) - shouldn't this be unsuspended?
thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] [DR743] decltype cannot be used with the :: operator
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2010-04-18 12:56 ` faisalv at yahoo dot com
@ 2010-04-19 9:38 ` redi at gcc dot gnu dot org
9 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-19 9:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from redi at gcc dot gnu dot org 2010-04-19 09:38 -------
Unsuspending, DR743 was recently resolved
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |NEW
Last reconfirmed|2009-04-16 18:10:10 |2010-04-19 09:38:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <20020517154601.6709.marco@technoboredom.net>
` (2 preceding siblings ...)
2004-02-13 5:39 ` pinskia at gcc dot gnu dot org
@ 2005-03-19 13:48 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-19 13:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-19 13:48 -------
*** Bug 20551 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <20020517154601.6709.marco@technoboredom.net>
2003-09-23 21:08 ` [Bug c++/6709] typeof() " pinskia at gcc dot gnu dot org
2003-11-24 23:05 ` hakonrk at fys dot uio dot no
@ 2004-02-13 5:39 ` pinskia at gcc dot gnu dot org
2005-03-19 13:48 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-13 5:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-13 05:39 -------
The error message is now:
tests/pr6709.cc: In function `int main()':
tests/pr6709.cc:10: error: `X' in namespace `::' does not name a type
which shows what is happening now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <20020517154601.6709.marco@technoboredom.net>
2003-09-23 21:08 ` [Bug c++/6709] typeof() " pinskia at gcc dot gnu dot org
@ 2003-11-24 23:05 ` hakonrk at fys dot uio dot no
2004-02-13 5:39 ` pinskia at gcc dot gnu dot org
2005-03-19 13:48 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 14+ messages in thread
From: hakonrk at fys dot uio dot no @ 2003-11-24 23:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hakonrk at fys dot uio dot no 2003-11-24 23:05 -------
Just noticed this bug myself. You can work around it by creating
a temporary typedef. E.g.,
typedef typeof(obj) T;
T::size_type s;
Still annoying though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/6709] typeof() cannot be used with the :: operator
[not found] <20020517154601.6709.marco@technoboredom.net>
@ 2003-09-23 21:08 ` pinskia at gcc dot gnu dot org
2003-11-24 23:05 ` hakonrk at fys dot uio dot no
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-23 21:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6709
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |igodard at pacbell dot net
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-23 19:35 -------
*** Bug 12379 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-04-19 9:38 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-6709-3116@http.gcc.gnu.org/bugzilla/>
2007-02-17 20:02 ` [Bug c++/6709] typeof() cannot be used with the :: operator pinskia at gcc dot gnu dot org
2007-08-12 2:05 ` pinskia at gcc dot gnu dot org
2010-03-08 14:29 ` bangerth at gmail dot com
2010-03-08 14:40 ` redi at gcc dot gnu dot org
2010-03-08 14:46 ` redi at gcc dot gnu dot org
2010-03-08 16:00 ` manu at gcc dot gnu dot org
2010-03-08 16:10 ` [Bug c++/6709] [DR743] " redi at gcc dot gnu dot org
2010-04-18 6:48 ` [Bug c++/6709] [DR743] decltype " pinskia at gcc dot gnu dot org
2010-04-18 12:56 ` faisalv at yahoo dot com
2010-04-19 9:38 ` redi at gcc dot gnu dot org
[not found] <20020517154601.6709.marco@technoboredom.net>
2003-09-23 21:08 ` [Bug c++/6709] typeof() " pinskia at gcc dot gnu dot org
2003-11-24 23:05 ` hakonrk at fys dot uio dot no
2004-02-13 5:39 ` pinskia at gcc dot gnu dot org
2005-03-19 13:48 ` 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).