[BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour

Denis Zaitsev <[email protected]>
Newsgroups gmane.comp.gcc.devel,gmane.linux.gcc
Message-ID <[email protected]>
This program:


static
int x(int y)
__attribute__ ((regparm(1)));

static
int x(int y)
{
    return y;
}


can't be compiled with GCC 3.4.4 20041224.  The compiler complains:


y-bug.c:7: error: conflicting types for 'x'
y-bug.c:3: error: previous declaration of 'x' was here
y-bug.c:7: error: conflicting types for 'x'
y-bug.c:3: error: previous declaration of 'x' was here


It seems that it's a bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.