public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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; 10+ 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] 10+ 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() cannot be used with the :: operator 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; 10+ 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] 10+ 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() cannot be used with the :: operator 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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
5 siblings, 0 replies; 10+ 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] 10+ 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
5 siblings, 0 replies; 10+ 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] 10+ 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
2010-03-08 16:00 ` manu at gcc dot gnu dot org
5 siblings, 0 replies; 10+ 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] 10+ 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 ` 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
` (2 subsequent siblings)
5 siblings, 0 replies; 10+ 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] 10+ 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 ` 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
` (3 subsequent siblings)
5 siblings, 0 replies; 10+ 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] 10+ 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 ` pinskia at gcc dot gnu dot org
2007-08-12 2:05 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 10+ 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] 10+ messages in thread
end of thread, other threads:[~2010-03-08 16:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20020517154601.6709.marco@technoboredom.net>
2003-09-23 21:08 ` [Bug c++/6709] typeof() cannot be used with the :: operator 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
[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
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
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).