public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
[not found] <bug-12226-3310@http.gcc.gnu.org/bugzilla/>
@ 2006-04-05 7:05 ` jason at gcc dot gnu dot org
2006-04-05 7:10 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-04-05 7:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #19 from jason at gcc dot gnu dot org 2006-04-05 07:05 -------
Giving an error for this testcase is no longer correct under DR 391:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#391
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
[not found] <bug-12226-3310@http.gcc.gnu.org/bugzilla/>
2006-04-05 7:05 ` [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor jason at gcc dot gnu dot org
@ 2006-04-05 7:10 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-05 7:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #20 from pinskia at gcc dot gnu dot org 2006-04-05 07:10 -------
(In reply to comment #19)
> Giving an error for this testcase is no longer correct under DR 391:
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#391
That would be recorded as PR 25950.
*** This bug has been marked as a duplicate of 25950 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (10 preceding siblings ...)
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 9:00 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 9:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 09:00 -------
*** Bug 15254 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hyliviu-gcc at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (8 preceding siblings ...)
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 9:00 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:48 -------
*** Bug 15079 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |david dot lee at teracruz
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (6 preceding siblings ...)
2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:51 -------
*** Bug 15284 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlo at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (7 preceding siblings ...)
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:45 -------
*** Bug 13986 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (9 preceding siblings ...)
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 9:00 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:50 -------
*** Bug 16145 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |apl at alum dot mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (5 preceding siblings ...)
2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:47 -------
*** Bug 14463 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |arnej at europe dot yahoo-
| |inc dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (4 preceding siblings ...)
2004-08-27 8:46 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:48 -------
*** Bug 14823 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |robert dot schweikert at
| |abaqus dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (3 preceding siblings ...)
2004-02-02 22:17 ` pinskia at gcc dot gnu dot org
@ 2004-08-27 8:46 ` pinskia at gcc dot gnu dot org
2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 8:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-27 08:46 -------
*** Bug 14213 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at pld-linux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
` (2 preceding siblings ...)
2004-01-06 0:48 ` mark at codesourcery dot com
@ 2004-02-02 22:17 ` pinskia at gcc dot gnu dot org
2004-08-27 8:46 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-02 22:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-02 22:17 -------
*** Bug 13986 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
2004-01-04 22:44 ` [Bug c++/12226] [3.3 Regression] " mmitchel at gcc dot gnu dot org
2004-01-05 22:52 ` dbaron at dbaron dot org
@ 2004-01-06 0:48 ` mark at codesourcery dot com
2004-02-02 22:17 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: mark at codesourcery dot com @ 2004-01-06 0:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2004-01-06 00:48 -------
Subject: Re: [3.3 Regression] g++ fails to enforce
accessibility requirement for copy constructor
On Mon, 2004-01-05 at 14:52, dbaron at dbaron dot org wrote:
> ------- Additional Comments From dbaron at dbaron dot org 2004-01-05 22:52 -------
> Before I go fix Mozilla to deal with this
> ( http://bugzilla.mozilla.org/show_bug.cgi?id=230118 ), I just want to
> double-check that this change was intended to apply to calls to functions taking
> reference types in addition to initialization of reference variables. That is,
> the program:
>
> class C {
> public: C() {}
> private: C(const C&) {}
> };
>
> void f(const C& c) { }
>
> int main()
> {
> f(C());
> return 0;
> }
>
> now yields an error.
You are correct; that program is invalid. The copy constructor for C
must be accessible at the point that the rvalue is bound to the
reference, even though G++ will optimize away its use.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
2004-01-04 22:44 ` [Bug c++/12226] [3.3 Regression] " mmitchel at gcc dot gnu dot org
@ 2004-01-05 22:52 ` dbaron at dbaron dot org
2004-01-06 0:48 ` mark at codesourcery dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: dbaron at dbaron dot org @ 2004-01-05 22:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dbaron at dbaron dot org 2004-01-05 22:52 -------
Before I go fix Mozilla to deal with this
( http://bugzilla.mozilla.org/show_bug.cgi?id=230118 ), I just want to
double-check that this change was intended to apply to calls to functions taking
reference types in addition to initialization of reference variables. That is,
the program:
class C {
public: C() {}
private: C(const C&) {}
};
void f(const C& c) { }
int main()
{
f(C());
return 0;
}
now yields an error.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dbaron at dbaron dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
@ 2004-01-04 22:44 ` mmitchel at gcc dot gnu dot org
2004-01-05 22:52 ` dbaron at dbaron dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-01-04 22:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-01-04 22:44 -------
Fixed in GCC 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Summary|[3.3/3.4 Regression] g++ |[3.3 Regression] g++ fails
|fails to enforce |to enforce accessibility
|accessibility requirement |requirement for copy
|for copy constructor |constructor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12226
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-04-05 7:10 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-12226-3310@http.gcc.gnu.org/bugzilla/>
2006-04-05 7:05 ` [Bug c++/12226] [3.3 Regression] g++ fails to enforce accessibility requirement for copy constructor jason at gcc dot gnu dot org
2006-04-05 7:10 ` pinskia at gcc dot gnu dot org
2003-09-09 17:46 [Bug c++/12226] New: " austern at apple dot com
2004-01-04 22:44 ` [Bug c++/12226] [3.3 Regression] " mmitchel at gcc dot gnu dot org
2004-01-05 22:52 ` dbaron at dbaron dot org
2004-01-06 0:48 ` mark at codesourcery dot com
2004-02-02 22:17 ` pinskia at gcc dot gnu dot org
2004-08-27 8:46 ` pinskia at gcc dot gnu dot org
2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
2004-08-27 8:48 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 8:51 ` pinskia at gcc dot gnu dot org
2004-08-27 9:00 ` 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).