[Bug preprocessor/17944] [3.4/4.0 regression] ICE with pragma once

2004-10-13 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-13 11:31 
---


*** This bug has been marked as a duplicate of 15167 ***

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


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


[Bug preprocessor/17944] [3.4/4.0 regression] ICE with pragma once

2004-10-13 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-13 09:16 
---
Here's a reduced testcase which consists of three files:

PR17944.c:
  #include "include/bug1.h"
  #include "include/bug2.h"

include/bug1.h:
  #pragma once
  #include "bug1.h"

include/bug2.h:
  #include "bug1.h"

Compiling this with "gcc -c PR17944.c" I get a segfault since gcc 3.4.0.
With gcc 2.95.3 - 3.3.5 I just get a warning:
  In file included from PR17944.c:1:
  include/bug1.h:1:9: warning: #pragma once is obsolete


-- 
   What|Removed |Added

 CC||reichelt at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
  Component|c++ |preprocessor
 Ever Confirmed||1
  GCC build triplet|powerpc-unknown-linux-gnu   |
   GCC host triplet|powerpc-unknown-linux-gnu   |
 GCC target triplet|powerpc-unknown-linux-gnu   |
   Keywords||ice-on-valid-code
  Known to fail||3.4.0 3.4.2 4.0.0
  Known to work||3.3.5
   Last reconfirmed|-00-00 00:00:00 |2004-10-13 09:16:09
   date||
Summary|ICE  Segmentation fault |[3.4/4.0 regression] ICE
   ||with pragma once
   Target Milestone|--- |3.4.3


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