public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18803] New: [4.0 regression] rejects access to operator() in template
@ 2004-12-02 23:42 bangerth at dealii dot org
  2004-12-02 23:42 ` [Bug c++/18803] " bangerth at dealii dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: bangerth at dealii dot org @ 2004-12-02 23:42 UTC (permalink / raw)
  To: gcc-bugs

Here's a recent regression (within the last 6 weeks or so): 
----------------------- 
struct A { 
  int operator() (); 
}; 
 
template <int> void foo () { 
  A &a = *new A(); 
  const int i = a(); 
} 
----------------------- 
deal.II/lac> c++ -c x.cc 
x.cc: In function 'void foo()': 
x.cc:8: error: 'a' cannot be used as a function 
 
That's clearly bogus. Of course the error goes away once the function 
is made a nontemplate. 
 
This error triggers about a dozen times in my code... 
 
W.

-- 
           Summary: [4.0 regression] rejects access to operator() in
                    template
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          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=18803


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

end of thread, other threads:[~2005-09-17 20:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-02 23:42 [Bug c++/18803] New: [4.0 regression] rejects access to operator() in template bangerth at dealii dot org
2004-12-02 23:42 ` [Bug c++/18803] " bangerth at dealii dot org
2004-12-02 23:44 ` pinskia at gcc dot gnu dot org
2004-12-02 23:57 ` bangerth at dealii dot org
2004-12-03 10:47 ` nathan at gcc dot gnu dot org
2004-12-08  8:36 ` cvs-commit at gcc dot gnu dot org
2004-12-08  8:41 ` nathan at gcc dot gnu dot org
2005-09-12  1:19 ` [Bug c++/18803] [3.4.5 " bangerth at dealii dot org
2005-09-12  1:22 ` [Bug c++/18803] [3.4 " pinskia at gcc dot gnu dot org
2005-09-15 11:37 ` nathan at gcc dot gnu dot org
2005-09-16 20:34 ` reichelt at gcc dot gnu dot org
2005-09-16 20:57 ` nathan at gcc dot gnu dot org
2005-09-16 21:04 ` reichelt at gcc dot gnu dot org
2005-09-16 22:41 ` gdr at integrable-solutions dot net
2005-09-17 20:49 ` cvs-commit at gcc dot gnu dot org
2005-09-17 20:53 ` reichelt 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).