[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/14203] [3.4/3.5 regression] ICE on warning about unused variable



------- Additional Comments From bangerth at dealii dot org  2004-02-19 00:26 -------
Confirmed. Here's something a little smaller: 
----------------------- 
int* foo();  
const bool b = false; 
 
int main() {  
  int i;  
  
  if (b)  
    if (int* p = foo())  
      {  
        int bla; 
        i = 1;  
      } 
} 
------------------------ 
 
This is a regression on 3.4 and mainline against 3.3.3: 
deal.II/base> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc -Wall 
x.cc: In function `int main()': 
x.cc:10: warning: unused variable 'bla' 
x.cc:8: warning: unused variable 'p' 
x.cc:13: internal compiler error: in make_decl_rtl, at varasm.c:707 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-19 00:26:07
               date|                            |
            Summary|[3.3 regression] ICE on     |[3.4/3.5 regression] ICE on
                   |valid code                  |warning about unused
                   |                            |variable
   Target Milestone|---                         |3.4.0


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: