[Bug c++/78217] Duplicate decls handling with auto

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78217

Andrew Pinski  changed:

   What|Removed |Added

 CC||lebedev.ri at gmail dot com

--- Comment #5 from Andrew Pinski  ---
*** Bug 85932 has been marked as a duplicate of this bug. ***

[Bug c++/78217] Duplicate decls handling with auto

2021-07-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78217

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2021-07-28
 Status|UNCONFIRMED |NEW

--- Comment #4 from Andrew Pinski  ---
Confirmed.

[Bug c++/78217] Duplicate decls handling with auto

2021-07-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78217

--- Comment #3 from Andrew Pinski  ---
Confirmed.

[Bug c++/78217] Duplicate decls handling with auto

2021-07-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78217

Andrew Pinski  changed:

   What|Removed |Added

 CC||ppluzhnikov at google dot com

--- Comment #2 from Andrew Pinski  ---
*** Bug 60352 has been marked as a duplicate of this bug. ***

[Bug c++/78217] Duplicate decls handling with auto

2016-11-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78217

--- Comment #1 from Jakub Jelinek  ---
Similar testcase without auto, but in a template:
template 
int foo ()
{
  extern int a;
  extern T a;
  return a;
}

template 
int bar ()
{
  extern int b;
  extern T b;
  return b;
}

int c = foo  ();
int d = bar  ();

g++ errors in both cases, clang++ only when T isn't int.