Take the following code (which I found while reducing PR 21685):
template <int>
int f(void)
{
  int i;
  struct f1
  {
    int f(void){return i;}
  };
}

We get:
t1.cc: In member function 'int f()::f1::f()':
t1.cc:7: error: use of %<auto%> variable from containing function
t1.cc:4: error:   'int i' declared here

Notice the use of %< and %>

-- 
           Summary: [4.0/4.1 Regression] weird quoting in an error message
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,gdr at gcc dot gnu dot
                    org


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

Reply via email to