public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25170] New: Erroneous error message for simple macro
@ 2005-11-30 1:16 jw203198 at hotmail dot com
2005-11-30 1:33 ` [Bug c/25170] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jw203198 at hotmail dot com @ 2005-11-30 1:16 UTC (permalink / raw)
To: gcc-bugs
Here is the test code:
typedef struct
{
int ele;
} tstruct;
#define TST(r,t) r##t = 1
void test()
{
tstruct ts;
TST(ts,.ele);
}
It generates the error:
"error: pasting "ts" and "." does not give a valid preprocessing token"
In previous versions of compiler (eg gcc-3.2.2) this generated a warning and
could therefore be ignored as another piece of unhelpful compiler output. But
now it is a error (but it isn't!) which stops compilation.
--
Summary: Erroneous error message for simple macro
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jw203198 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25170
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/25170] Erroneous error message for simple macro
2005-11-30 1:16 [Bug c/25170] New: Erroneous error message for simple macro jw203198 at hotmail dot com
@ 2005-11-30 1:33 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 1:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-30 01:33 -------
This has been an error since 3.0.x.
And it is an error in your code.
*** This bug has been marked as a duplicate of 7976 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25170
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-30 1:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 1:16 [Bug c/25170] New: Erroneous error message for simple macro jw203198 at hotmail dot com
2005-11-30 1:33 ` [Bug c/25170] " 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).