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

            Bug ID: 60352
           Summary: [C++11] Bogus "error: conflicting declaration 'auto
                    i'"
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppluzhnikov at google dot com

Using current trunk (r208191):

g++ -c t.cc  -std=c++11
t.cc:2:6: error: conflicting declaration 'auto i'
 auto i = j;
      ^
t.cc:1:12: note: previous declaration as 'int i'
 extern int i, j;
            ^

Test:

extern int i, j;
auto i = j;


Google ref: b/13213433

Reply via email to