public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38375]  New: infinite loop on invalid struct redefinition
@ 2008-12-02 21:43 mrs at apple dot com
  2008-12-02 21:45 ` [Bug c/38375] " mrs at apple dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: mrs at apple dot com @ 2008-12-02 21:43 UTC (permalink / raw)
  To: gcc-bugs

struct sqt13 {};
struct sqt13 {
  struct sqt13 x;
} y = { 3.0 };

takes infinite time/memory to compile.

GNU C (GCC) version 4.4.0 20081003 (experimental) [trunk revision 140855]
(i686-apple-darwin9)


-- 
           Summary: infinite loop on invalid struct redefinition
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrs at apple dot com


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


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

* [Bug c/38375] infinite loop on invalid struct redefinition
  2008-12-02 21:43 [Bug c/38375] New: infinite loop on invalid struct redefinition mrs at apple dot com
@ 2008-12-02 21:45 ` mrs at apple dot com
  2008-12-24  1:01 ` pinskia at gcc dot gnu dot org
  2009-04-28 21:39 ` anmol at freescale dot com
  2 siblings, 0 replies; 5+ messages in thread
From: mrs at apple dot com @ 2008-12-02 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mrs at apple dot com  2008-12-02 21:43 -------
Radar 6400208


-- 

mrs at apple dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrs at apple dot com


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


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

* [Bug c/38375] infinite loop on invalid struct redefinition
  2008-12-02 21:43 [Bug c/38375] New: infinite loop on invalid struct redefinition mrs at apple dot com
  2008-12-02 21:45 ` [Bug c/38375] " mrs at apple dot com
@ 2008-12-24  1:01 ` pinskia at gcc dot gnu dot org
  2009-04-28 21:39 ` anmol at freescale dot com
  2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-24  1:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-24 00:58 -------
Confirmed, not a regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |3.3 4.3.0 4.0.2 4.1.1 4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-24 00:58:45
               date|                            |


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


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

* [Bug c/38375] infinite loop on invalid struct redefinition
  2008-12-02 21:43 [Bug c/38375] New: infinite loop on invalid struct redefinition mrs at apple dot com
  2008-12-02 21:45 ` [Bug c/38375] " mrs at apple dot com
  2008-12-24  1:01 ` pinskia at gcc dot gnu dot org
@ 2009-04-28 21:39 ` anmol at freescale dot com
  2 siblings, 0 replies; 5+ messages in thread
From: anmol at freescale dot com @ 2009-04-28 21:39 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #3 from anmol at freescale dot com  2009-04-28 21:38 -------

 I tried reproducing on trunk and on gcc-4_4-branch; GCC does not loop forever:

gcc version 4.5.0 20090423 (experimental) [trunk revision 146648] (GCC)
------------------------------------------------------------------------
$ cat pr38375.c 
struct sqt13 {};
struct sqt13 {
  struct sqt13 x;
} y = { 3.0 };
$ ~/gcc-pure/tools/bin/powerpc-unknown-linux-gnu-gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../../gcc/configure --prefix=/home/anmol/gcc-pure/tools/
--build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
--host=powerpc-unknown-linux-gnu --with-ppl=/home/anmol/gcc-pure/tools/
--with-cloog=/home/anmol/gcc-pure/tools/ --enable-checking : (reconfigured)
../../gcc/configure --prefix=/home/anmol/gcc-pure/tools/
--build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
--host=powerpc-unknown-linux-gnu --with-ppl=/home/anmol/gcc-pure/tools/
--with-cloog=/home/anmol/gcc-pure/tools/ --enable-checking
build_alias=powerpc-unknown-linux-gnu host_alias=powerpc-unknown-linux-gnu
target_alias=powerpc-unknown-linux-gnu
--enable-languages=c,c++,fortran,java,objc --no-create --no-recursion
Thread model: posix
gcc version 4.5.0 20090423 (experimental) [trunk revision 146648] (GCC)
$ time ~/gcc-pure/tools/bin/powerpc-unknown-linux-gnu-gcc -c pr38375.c 
pr38375.c:2: error: redefinition of ‘struct sqt13’
pr38375.c:3: error: field ‘x’ has incomplete type

real    0m0.044s
user    0m0.027s
sys     0m0.009s
$ uname -a
Linux localhost.localdomain 2.6.27.5-117.fc10.ppc #1 Tue Nov 18 11:50:30 EST
2008 ppc ppc ppc GNU/Linux

gcc version 4.4.1 20090424 (prerelease) [gcc-4_4-branch revision 146746] (GCC)
-------------------------------------------------------------------------------
$ cat 38375.c
struct sqt13 {};
struct sqt13 {
  struct sqt13 x;
} y = { 3.0 };
$
/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/bin/powerpc-unknown-linux-gnu-gcc
-v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../../gcc/configure
--prefix=/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero//tools/
--build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
--host=powerpc-unknown-linux-gnu
--with-ppl=/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/
--with-cloog=/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/
--enable-checking
Thread model: posix
gcc version 4.4.1 20090424 (prerelease) [gcc-4_4-branch revision 146746] (GCC) 
$ time
/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/bin/powerpc-unknown-linux-gnu-gcc
-c 38375.c
38375.c:2: error: redefinition of ‘struct sqt13’
38375.c:3: error: field ‘x’ has incomplete type

real    0m0.111s
user    0m0.030s
sys     0m0.029s
$ uname -a
Linux perf3farm0.am.freescale.net 2.6.27.5-117.fc10.ppc.smp #1 SMP Tue Nov 18
12:35:18 EST 2008 ppc ppc ppc GNU/Linux


-- 

anmol at freescale dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anmol at freescale dot com


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


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

* [Bug c/38375] infinite loop on invalid struct redefinition
       [not found] <bug-38375-4@http.gcc.gnu.org/bugzilla/>
@ 2014-05-06 19:08 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-05-06 19:08 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |FIXED
      Known to fail|                            |

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed long time ago.


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

end of thread, other threads:[~2014-05-06 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-02 21:43 [Bug c/38375] New: infinite loop on invalid struct redefinition mrs at apple dot com
2008-12-02 21:45 ` [Bug c/38375] " mrs at apple dot com
2008-12-24  1:01 ` pinskia at gcc dot gnu dot org
2009-04-28 21:39 ` anmol at freescale dot com
     [not found] <bug-38375-4@http.gcc.gnu.org/bugzilla/>
2014-05-06 19:08 ` mpolacek at gcc dot gnu.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).