public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47210] New: Compile error on type specifier in a friend declaration designates a class type
@ 2011-01-07 12:41 boostcpp at gmail dot com
2011-01-07 14:29 ` [Bug c++/47210] [C++0x] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: boostcpp at gmail dot com @ 2011-01-07 12:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47210
Summary: Compile error on type specifier in a friend declaration
designates a class type
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: boostcpp@gmail.com
The restriction,
"An elaborated-type-specifier shall be used in a friend declaration for a
class."
, does not exists in the current C++0x draft.
In the latest draft(N2335),
11.4 Friends [class.friend] paragraph 3 said
"If the type specifier in a friend declaration designates a (possibly
cv-qualified) class type, that class is declared as a friend"
So, following well-formed code should be accepted under the compile option
-std=c++0x.
class Y ;
class X
{
// error on the 2011-01-01 snapshot of gcc 4.6
friend Y ; // OK, Y is class type.
} ;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47210] [C++0x] Compile error on type specifier in a friend declaration designates a class type
2011-01-07 12:41 [Bug c++/47210] New: Compile error on type specifier in a friend declaration designates a class type boostcpp at gmail dot com
@ 2011-01-07 14:29 ` redi at gcc dot gnu.org
2011-01-07 14:38 ` boostcpp at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-01-07 14:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47210
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Summary|Compile error on type |[C++0x] Compile error on
|specifier in a friend |type specifier in a friend
|declaration designates a |declaration designates a
|class type |class type
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-07 14:01:11 UTC ---
Not a bug, just not implemented yet, as documented at
http://gcc.gnu.org/projects/cxx0x.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47210] [C++0x] Compile error on type specifier in a friend declaration designates a class type
2011-01-07 12:41 [Bug c++/47210] New: Compile error on type specifier in a friend declaration designates a class type boostcpp at gmail dot com
2011-01-07 14:29 ` [Bug c++/47210] [C++0x] " redi at gcc dot gnu.org
@ 2011-01-07 14:38 ` boostcpp at gmail dot com
2011-01-11 12:06 ` rguenth at gcc dot gnu.org
2011-02-14 23:07 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: boostcpp at gmail dot com @ 2011-01-07 14:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47210
--- Comment #2 from Ryou Ezoe <boostcpp at gmail dot com> 2011-01-07 14:02:43 UTC ---
Sorry, I didn't noticed that.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47210] [C++0x] Compile error on type specifier in a friend declaration designates a class type
2011-01-07 12:41 [Bug c++/47210] New: Compile error on type specifier in a friend declaration designates a class type boostcpp at gmail dot com
2011-01-07 14:29 ` [Bug c++/47210] [C++0x] " redi at gcc dot gnu.org
2011-01-07 14:38 ` boostcpp at gmail dot com
@ 2011-01-11 12:06 ` rguenth at gcc dot gnu.org
2011-02-14 23:07 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-11 12:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47210
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-11 11:56:38 UTC ---
.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/47210] [C++0x] Compile error on type specifier in a friend declaration designates a class type
2011-01-07 12:41 [Bug c++/47210] New: Compile error on type specifier in a friend declaration designates a class type boostcpp at gmail dot com
` (2 preceding siblings ...)
2011-01-11 12:06 ` rguenth at gcc dot gnu.org
@ 2011-02-14 23:07 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-02-14 23:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47210
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |DUPLICATE
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-02-14 23:02:07 UTC ---
Marking as a dup of bug
*** This bug has been marked as a duplicate of bug 47721 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-14 23:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 12:41 [Bug c++/47210] New: Compile error on type specifier in a friend declaration designates a class type boostcpp at gmail dot com
2011-01-07 14:29 ` [Bug c++/47210] [C++0x] " redi at gcc dot gnu.org
2011-01-07 14:38 ` boostcpp at gmail dot com
2011-01-11 12:06 ` rguenth at gcc dot gnu.org
2011-02-14 23:07 ` pinskia at gcc dot gnu.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).