https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66452
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Mon Jun 8 10:35:24 2015 New Revision: 224216 URL: https://gcc.gnu.org/viewcvs?rev=224216&root=gcc&view=rev Log: PR sanitizer/66452 * toplev.c (check_global_declaration): Don't warn about artificial decls. * g++.dg/ubsan/pr66452.C: New test. Added: trunk/gcc/testsuite/g++.dg/ubsan/pr66452.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/toplev.c