public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14199] New: [tree-ssa regression] Unjustified warning about unused variable
@ 2004-02-18 20:25 bangerth at dealii dot org
  2004-02-18 20:26 ` [Bug c++/14199] " bangerth at dealii dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2004-02-18 20:25 UTC (permalink / raw)
  To: gcc-bugs

Here is some recent regression I see on tree-ssa. I don't have a recent 
mainline checked out, so can't test whether this also happens on mainline, 
but here is what happens: 
----------------------------- 
struct X { 
    static void foo (); 
}; 
 
template <typename T> 
void foo (const T &t) { 
  t.foo(); 
} 
 
template void foo (const X &); 
------------------- 
 
deal.II/base> c++ -c -Wunused x.cc -W -Wall  
x.cc: In function `void foo(const T&) [with T = X]': 
x.cc:10:   instantiated from here 
x.cc:6: warning: unused parameter 't' 
 
This warning is clearly bogus! 
 
W.

-- 
           Summary: [tree-ssa regression] Unjustified warning about unused
                    variable
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-02-20  9:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 20:25 [Bug c++/14199] New: [tree-ssa regression] Unjustified warning about unused variable bangerth at dealii dot org
2004-02-18 20:26 ` [Bug c++/14199] " bangerth at dealii dot org
2004-02-18 21:55 ` gerald at pfeifer dot com
2004-02-18 21:59 ` bangerth at dealii dot org
2004-02-18 22:04 ` bangerth at dealii dot org
2004-02-18 22:09 ` [Bug c++/14199] [3.4/3.5 " pinskia at gcc dot gnu dot org
2004-02-19  0:37 ` bangerth at dealii dot org
2004-02-20  2:20 ` pinskia at gcc dot gnu dot org
2004-02-20  7:23 ` mmitchel at gcc dot gnu dot org
2004-02-20  8:57 ` cvs-commit at gcc dot gnu dot org
2004-02-20  9:03 ` cvs-commit at gcc dot gnu dot org
2004-02-20  9:05 ` mmitchel 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).