public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26004]  New: gcc errors on valid code
@ 2006-01-28 13:06 gcc-bugzilla at gcc dot gnu dot org
  2006-01-28 15:17 ` [Bug c/26004] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2006-01-28 13:06 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]



Gcc complains about legal code.  Test case stripped down from a gdb
testsuite test case.

Environment:
System: Linux fishfood.ninemoons.com 2.6.14-1.1656_FC4 #1 Thu Jan 5 22:13:22
EST 2006 i686 i686 i386 GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /src/latest/trunk/src/gcc/configure -v
--prefix=/opt/local/latest/trunk --enable-languages=c,c++
--cache-file=.././config.cache --srcdir=/src/latest/trunk/src/gcc

How-To-Repeat:

$ cat /tmp/bug.c
struct s_1 { short s[1]; } z_1;

struct s_1
add_struct_1 (struct s_1 s)
{
  return s;
}

struct s_1
wack_struct_1 (void)
{
  register struct s_1 u = z_1;
  u = add_struct_1 (u);
  return u;
}

$ gcc -c /tmp/bug.c
/tmp/bug.c: In function ‘wack_struct_1’:
/tmp/bug.c:13: error: address of register variable ‘u’ requested


-- 
           Summary: gcc errors on valid code
           Product: gcc
           Version: 2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fnf at specifix dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26004


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2006-06-07 15:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-28 13:06 [Bug c/26004] New: gcc errors on valid code gcc-bugzilla at gcc dot gnu dot org
2006-01-28 15:17 ` [Bug c/26004] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-30 17:42 ` amylaar at gcc dot gnu dot org
2006-01-30 18:01 ` [Bug c/26004] [4.1/4.2 Regression] gcc errors on valid code [SVO] pinskia at gcc dot gnu dot org
2006-01-30 18:29 ` amylaar at gcc dot gnu dot org
2006-01-30 18:32 ` amylaar at gcc dot gnu dot org
2006-01-30 18:38 ` amylaar at gcc dot gnu dot org
2006-02-01  3:14 ` mmitchel at gcc dot gnu dot org
2006-02-15 21:41 ` amylaar at gcc dot gnu dot org
2006-02-15 21:47 ` pinskia at gcc dot gnu dot org
2006-02-15 21:48 ` pinskia at gcc dot gnu dot org
2006-02-24  0:31 ` mmitchel at gcc dot gnu dot org
2006-03-07 12:28 ` pinskia at gcc dot gnu dot org
2006-03-07 19:52 ` [Bug c/26004] [4.1 " pinskia at gcc dot gnu dot org
2006-03-07 19:55 ` pinskia at gcc dot gnu dot org
2006-03-07 21:02 ` [Bug c/26004] [4.1/4.2 " pinskia at gcc dot gnu dot org
2006-03-07 21:06 ` pinskia at gcc dot gnu dot org
2006-03-08  1:34 ` janis at gcc dot gnu dot org
2006-03-09 17:22 ` jason at gcc dot gnu dot org
2006-03-10 22:47 ` jason at gcc dot gnu dot org
2006-03-10 23:20 ` [Bug middle-end/26004] [4.1 " pinskia at gcc dot gnu dot org
2006-03-10 23:42 ` jason at gcc dot gnu dot org
2006-03-11  0:10 ` pinskia at gcc dot gnu dot org
2006-06-07 15:42 ` 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).