public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35630]  New: function definition changes typedef meaning
@ 2008-03-18 23:02 tim at klingt dot org
  2008-03-26  0:35 ` [Bug c++/35630] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tim at klingt dot org @ 2008-03-18 23:02 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]

this code does not compile with g++-4.3 (4.1 and 4.2 are able to compile it):

template <typename T>
struct set
{};

struct derived:
    public set<int>
{
    typedef set<int> base;

    void set(void) {}
};

tim@laptop:~$ g++-4.3 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure linux gnu
Thread model: posix
gcc version 4.3.0 20080301 (prerelease) [gcc-4_3-branch revision 132801]
(Debian 4.3.0~rc2-1) 

tim@laptop:~$ g++-4.3 -c tst.cpp
tst.cpp:10: error: declaration of ‘void derived::set()’
tst.cpp:3: error: changes meaning of ‘set’ from ‘struct set<int>’


-- 
           Summary: function definition changes typedef meaning
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tim at klingt dot org


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


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

* [Bug c++/35630] function definition changes typedef meaning
  2008-03-18 23:02 [Bug c++/35630] New: function definition changes typedef meaning tim at klingt dot org
@ 2008-03-26  0:35 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-26  0:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-03-26 00:35 -------
Gcc is correct here. You should read http://gcc.gnu.org/gcc-4.3/changes.html.  


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-03-26  0:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18 23:02 [Bug c++/35630] New: function definition changes typedef meaning tim at klingt dot org
2008-03-26  0:35 ` [Bug c++/35630] " 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).