public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
@ 2003-07-24 4:04 ` pinskia at physics dot uc dot edu
2003-07-24 4:05 ` pinskia at physics dot uc dot edu
` (17 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 4:04 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=1920
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|no warning with passing |no warning or error with
|cast-as-lvalue as an |cast-as-lvalue extension
|argument |
Target Milestone|--- |3.4
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-24 04:04 -------
This is the meta-bug for the removal of cast-as-lvalue extension for c++.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
2003-07-24 4:04 ` [Bug c++/1920] no warning or error with cast-as-lvalue extension pinskia at physics dot uc dot edu
@ 2003-07-24 4:05 ` pinskia at physics dot uc dot edu
2003-07-24 4:11 ` pinskia at physics dot uc dot edu
` (16 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 4:05 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=1920
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peteb at sitera dot com
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-24 04:05 -------
*** Bug 1833 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (2 preceding siblings ...)
2003-07-24 4:11 ` pinskia at physics dot uc dot edu
@ 2003-07-24 4:11 ` pinskia at physics dot uc dot edu
2003-07-31 14:44 ` pinskia at physics dot uc dot edu
` (14 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 4:11 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=1920
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aloeff at de dot ibm dot com
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-24 04:10 -------
*** Bug 7884 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
2003-07-24 4:04 ` [Bug c++/1920] no warning or error with cast-as-lvalue extension pinskia at physics dot uc dot edu
2003-07-24 4:05 ` pinskia at physics dot uc dot edu
@ 2003-07-24 4:11 ` pinskia at physics dot uc dot edu
2003-07-24 4:11 ` pinskia at physics dot uc dot edu
` (15 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 4:11 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=1920
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-24 04:11 -------
*** Bug 10754 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (3 preceding siblings ...)
2003-07-24 4:11 ` pinskia at physics dot uc dot edu
@ 2003-07-31 14:44 ` pinskia at physics dot uc dot edu
2003-08-03 17:31 ` neroden at gcc dot gnu dot org
` (13 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-31 14:44 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=1920
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus dot breuer at materna
| |dot de
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-31 14:44 -------
*** Bug 11748 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (4 preceding siblings ...)
2003-07-31 14:44 ` pinskia at physics dot uc dot edu
@ 2003-08-03 17:31 ` neroden at gcc dot gnu dot org
2003-08-06 1:50 ` pinskia at physics dot uc dot edu
` (12 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-08-03 17:31 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=1920
------- Additional Comments From neroden at gcc dot gnu dot org 2003-08-03 17:31 -------
What's the status here? Has cast-as-lvalue been removed from 3.4 yet or hasn't it?
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (5 preceding siblings ...)
2003-08-03 17:31 ` neroden at gcc dot gnu dot org
@ 2003-08-06 1:50 ` pinskia at physics dot uc dot edu
2003-08-06 5:28 ` markus dot breuer at materna dot de
` (11 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-06 1:50 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=1920
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-05-05 00:00:00 |2003-08-06 01:50:42
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 01:50 -------
cast-as-lvalue has not been removed from the mainline yet.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (6 preceding siblings ...)
2003-08-06 1:50 ` pinskia at physics dot uc dot edu
@ 2003-08-06 5:28 ` markus dot breuer at materna dot de
2003-08-06 5:41 ` pinskia at physics dot uc dot edu
` (10 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: markus dot breuer at materna dot de @ 2003-08-06 5:28 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=1920
------- Additional Comments From markus dot breuer at materna dot de 2003-08-06 05:28 -------
How does gcc3.4 fix this error, if cast-as-lvalue has not been removed yet?
Will the gcc produce an error on compiling or generate appropriate code?
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (7 preceding siblings ...)
2003-08-06 5:28 ` markus dot breuer at materna dot de
@ 2003-08-06 5:41 ` pinskia at physics dot uc dot edu
2003-08-06 7:34 ` gdr at integrable-solutions dot net
` (9 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-06 5:41 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=1920
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 05:41 -------
It was promised that this extension will be removed but who knows. 3.4 will reject the code that
uses this.
With this testcase:
typedef char *pchar;
void func(pchar &s)
{}
int main ()
{
char *s = "123";
func((pchar)s);
}
the mainline (20030805) now ICEs:
pr1833.2.cc: In function `int main()':
pr1833.2.cc:9: internal compiler error: in convert_like_real, at cp/call.c:4131
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Here is one which does not ICE but is accepted:
extern int do_stuff(void *bar);
int f(char *str)
{
void *foo;
(char *) foo = str+1;
return do_stuff(foo);
}
Here is another case where gcc ICEs:
enum _t
{
off = 0,
on = 100
};
void fn(int& x)
{
x = on;
}
int main()
{
_t t = off;
fn((int)t);
}
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (8 preceding siblings ...)
2003-08-06 5:41 ` pinskia at physics dot uc dot edu
@ 2003-08-06 7:34 ` gdr at integrable-solutions dot net
2003-08-06 7:34 ` gdr at integrable-solutions dot net
` (8 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-08-06 7:34 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=1920
------- Additional Comments From gdr at integrable-solutions dot net 2003-08-06 07:34 -------
Subject: Re: no warning or error with cast-as-lvalue extension
"pinskia at physics dot uc dot edu" <gcc-bugzilla@gcc.gnu.org> writes:
| cast-as-lvalue has not been removed from the mainline yet.
That is odd. I think we all agreed that it should go.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (9 preceding siblings ...)
2003-08-06 7:34 ` gdr at integrable-solutions dot net
@ 2003-08-06 7:34 ` gdr at integrable-solutions dot net
2003-08-11 15:51 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-08-06 7:34 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=1920
------- Additional Comments From gdr at integrable-solutions dot net 2003-08-06 07:34 -------
Subject: Re: no warning or error with cast-as-lvalue extension
"markus dot breuer at materna dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| How does gcc3.4 fix this error, if cast-as-lvalue has not been removed yet?
GCC-3.4 should just remove thta thingy.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (10 preceding siblings ...)
2003-08-06 7:34 ` gdr at integrable-solutions dot net
@ 2003-08-11 15:51 ` pinskia at gcc dot gnu dot org
2003-08-12 12:48 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 15:51 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=1920
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |robt at flyingpig dot com
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-11 15:51 -------
*** Bug 8035 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (11 preceding siblings ...)
2003-08-11 15:51 ` pinskia at gcc dot gnu dot org
@ 2003-08-12 12:48 ` pinskia at gcc dot gnu dot org
2003-08-13 3:50 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-12 12:48 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=1920
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-invalid-code |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-12 12:48 -------
The two examples where I reported GCC ICEs, in 20030812, GCC no longer ICE but rejects them
which is right.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (12 preceding siblings ...)
2003-08-12 12:48 ` pinskia at gcc dot gnu dot org
@ 2003-08-13 3:50 ` pinskia at gcc dot gnu dot org
2003-09-01 1:23 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-13 3:50 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=1920
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-13 03:50 -------
Two more examples where the c front-end fails but the c++ frontend does not (this time
inline-asm):
int f(int i)
{
asm("":"+r"((short)i));
}
int f1(int i)
{
asm("":"+r"((long long)i));
}
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (13 preceding siblings ...)
2003-08-13 3:50 ` pinskia at gcc dot gnu dot org
@ 2003-09-01 1:23 ` mmitchel at gcc dot gnu dot org
2003-09-03 18:12 ` bangerth at dealii dot org
` (3 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-09-01 1:23 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=1920
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-09-01 01:23 -------
Removed target milestone; this is not a regression.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (14 preceding siblings ...)
2003-09-01 1:23 ` mmitchel at gcc dot gnu dot org
@ 2003-09-03 18:12 ` bangerth at dealii dot org
2003-09-04 7:20 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
18 siblings, 0 replies; 19+ messages in thread
From: bangerth at dealii dot org @ 2003-09-03 18:12 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=1920
------- Additional Comments From bangerth at dealii dot org 2003-09-03 18:12 -------
For the record:
Deprecation of the cast-as-lvalue (mis-)feature has been discussed several times.
The (presently) latest thread starts here:
http://gcc.gnu.org/ml/gcc/2003-05/msg00847.html
W.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (15 preceding siblings ...)
2003-09-03 18:12 ` bangerth at dealii dot org
@ 2003-09-04 7:20 ` mmitchel at gcc dot gnu dot org
2003-12-09 16:19 ` dhazeghi at yahoo dot com
2005-02-12 14:50 ` pinskia at gcc dot gnu dot org
18 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-09-04 7:20 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=1920
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-09-04 07:20 -------
Fixed in GCC 3.4 with:
http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00191.html
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (16 preceding siblings ...)
2003-09-04 7:20 ` mmitchel at gcc dot gnu dot org
@ 2003-12-09 16:19 ` dhazeghi at yahoo dot com
2005-02-12 14:50 ` pinskia at gcc dot gnu dot org
18 siblings, 0 replies; 19+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 16:19 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1920
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/1920] no warning or error with cast-as-lvalue extension
[not found] <20010209012601.1920.mdejong@redhat.com>
` (17 preceding siblings ...)
2003-12-09 16:19 ` dhazeghi at yahoo dot com
@ 2005-02-12 14:50 ` pinskia at gcc dot gnu dot org
18 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 14:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-11 22:56 -------
*** Bug 19914 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |msadoghi at ca dot ibm dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1920
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2005-02-11 22:56 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20010209012601.1920.mdejong@redhat.com>
2003-07-24 4:04 ` [Bug c++/1920] no warning or error with cast-as-lvalue extension pinskia at physics dot uc dot edu
2003-07-24 4:05 ` pinskia at physics dot uc dot edu
2003-07-24 4:11 ` pinskia at physics dot uc dot edu
2003-07-24 4:11 ` pinskia at physics dot uc dot edu
2003-07-31 14:44 ` pinskia at physics dot uc dot edu
2003-08-03 17:31 ` neroden at gcc dot gnu dot org
2003-08-06 1:50 ` pinskia at physics dot uc dot edu
2003-08-06 5:28 ` markus dot breuer at materna dot de
2003-08-06 5:41 ` pinskia at physics dot uc dot edu
2003-08-06 7:34 ` gdr at integrable-solutions dot net
2003-08-06 7:34 ` gdr at integrable-solutions dot net
2003-08-11 15:51 ` pinskia at gcc dot gnu dot org
2003-08-12 12:48 ` pinskia at gcc dot gnu dot org
2003-08-13 3:50 ` pinskia at gcc dot gnu dot org
2003-09-01 1:23 ` mmitchel at gcc dot gnu dot org
2003-09-03 18:12 ` bangerth at dealii dot org
2003-09-04 7:20 ` mmitchel at gcc dot gnu dot org
2003-12-09 16:19 ` dhazeghi at yahoo dot com
2005-02-12 14:50 ` 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).