public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17629] New: Fails to report error
@ 2004-09-23  7:17 igodard at pacbell dot net
  2004-09-24  1:34 ` [Bug c++/17629] " bangerth at dealii dot org
  2005-04-30 15:54 ` [Bug c++/17629] Top-level using declaration which conflicts with an existing name is not diagnosed pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: igodard at pacbell dot net @ 2004-09-23  7:17 UTC (permalink / raw)
  To: gcc-bugs

class i;
int j;
namespace n{int i;int j;};
using n::j;
using n::i;
int main() {return i+j;}

gets you

~/ootbc/members/src$ c++ foo.cc
foo.cc:5: error: `i' is already declared in this scope
~/ootbc/members/src$


According to Stroustrup, "j" is an error too.

Ivan

-- 
           Summary: Fails to report error
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/17629] Fails to report error
  2004-09-23  7:17 [Bug c++/17629] New: Fails to report error igodard at pacbell dot net
@ 2004-09-24  1:34 ` bangerth at dealii dot org
  2005-04-30 15:54 ` [Bug c++/17629] Top-level using declaration which conflicts with an existing name is not diagnosed pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2004-09-24  1:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-09-24 01:34 -------
Confirmed. Amusingly, icc only prints an error message  for "j" :-) 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-24 01:34:38
               date|                            |


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


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

* [Bug c++/17629] Top-level using declaration which conflicts with an existing name is not diagnosed
  2004-09-23  7:17 [Bug c++/17629] New: Fails to report error igodard at pacbell dot net
  2004-09-24  1:34 ` [Bug c++/17629] " bangerth at dealii dot org
@ 2005-04-30 15:54 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-30 15:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-30 15:54 -------
Fixed in 4.0.0 and above.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-04-30 15:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23  7:17 [Bug c++/17629] New: Fails to report error igodard at pacbell dot net
2004-09-24  1:34 ` [Bug c++/17629] " bangerth at dealii dot org
2005-04-30 15:54 ` [Bug c++/17629] Top-level using declaration which conflicts with an existing name is not diagnosed pinskia 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).