This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29297] New: Segmentation fault on "invalid use of `::'"


test.ii:7: error: invalid use of `::'
test.ii:7: error: declaration of `sp::a sp::a::my_type'
test.ii:1: error: changes meaning of `my_type' from `typedef int my_type'
g++.new: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

typedef int my_type;
namespace sp
{
  struct a
  {
    my_type var;
    a(sp::my_type);
    a get() {}
  };
}

Running on x86_64 with unpatched 3.4.6. Fails against patched 4.1.1 as well (do
not have an unpatched one ready). Could not reproduce this on i386.


-- 
           Summary: Segmentation fault on "invalid use of `::'"
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefaan dot deroeck at gmail dot com
  GCC host triplet: x86_64-unknown-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]