public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16235] New: fails to identify
@ 2004-06-27 19:20 igodard at pacbell dot net
  2004-06-27 19:22 ` [Bug c++/16235] " igodard at pacbell dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-06-27 19:20 UTC (permalink / raw)
  To: gcc-bugs

The problem occurs when a particular type ("Hide::Frob<sizeof(Hide::Frob<1>::Type)>::Type" - "Hide" is a namespace) is typedefed at file scope to the *same* name "Frob" as is used in the namespace to construct the type, and then used as an explicit typename argument to a call on a template function.

If the full type is used explicitly then it compiles, see allocator.hh:265. Or it is locally typedefed and the name used then it compiles; see allocator.hh:267. If it is typedefed at global scope to a random name and the name used then it compiles; see allocator.hh:268. If and only if the file scope typedef has that particular name does it fail. But the only other use of that identifier is inside a namespace and they should have no influence on each other. And if that name ("Frob") is used in a local typedef (not shown, try it) it compiles - the typedef must be at file scope to fail.

I have tried to create a simpler testcase for the template logic surrounding the call and have failed. Everything I do makes the bug go away; sorry. 

Ivan

-- 
           Summary: fails to identify
           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=16235


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

* [Bug c++/16235] fails to identify
  2004-06-27 19:20 [Bug c++/16235] New: fails to identify igodard at pacbell dot net
@ 2004-06-27 19:22 ` igodard at pacbell dot net
  2004-06-27 19:33 ` igodard at pacbell dot net
  2004-06-28  0:16 ` igodard at pacbell dot net
  2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-06-27 19:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-06-27 19:20 -------
Created an attachment (id=6637)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6637&action=view)
Compiler output (-v -save-temps)


-- 


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


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

* [Bug c++/16235] fails to identify
  2004-06-27 19:20 [Bug c++/16235] New: fails to identify igodard at pacbell dot net
  2004-06-27 19:22 ` [Bug c++/16235] " igodard at pacbell dot net
@ 2004-06-27 19:33 ` igodard at pacbell dot net
  2004-06-28  0:16 ` igodard at pacbell dot net
  2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-06-27 19:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-06-27 19:22 -------
Created an attachment (id=6638)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6638&action=view)
Source code (-save-temps)


-- 


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


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

* [Bug c++/16235] fails to identify
  2004-06-27 19:20 [Bug c++/16235] New: fails to identify igodard at pacbell dot net
  2004-06-27 19:22 ` [Bug c++/16235] " igodard at pacbell dot net
  2004-06-27 19:33 ` igodard at pacbell dot net
@ 2004-06-28  0:16 ` igodard at pacbell dot net
  2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-06-28  0:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-06-28 00:06 -------
Never mind - I figured it out :-(

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2004-06-28  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-27 19:20 [Bug c++/16235] New: fails to identify igodard at pacbell dot net
2004-06-27 19:22 ` [Bug c++/16235] " igodard at pacbell dot net
2004-06-27 19:33 ` igodard at pacbell dot net
2004-06-28  0:16 ` igodard at pacbell dot net

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).