https://bugs.kde.org/show_bug.cgi?id=376149
Johannes Hirte <johannes.hi...@datenkhaos.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|UPSTREAM |--- Status|RESOLVED |UNCONFIRMED --- Comment #10 from Johannes Hirte <johannes.hi...@datenkhaos.de> --- (In reply to Kevin Funk from comment #9) > Sorry, forget my previous comment. LLVM_ENABLE_ASSERTIONS:BOOL is only > useful for *enabling* assertions, it won't help for *disabling* them. > > If you want to disable assertions you need > -DCMAKE_BUILD_TYPE=RelWithDebInfo, or -DCMAKE_BUILD_TYPE=Release. Just *not* > -DCMAKE_BUILD_TYPE=Debug. I've double checked this, assertions were disabled all the time. The assert that fires here is this one: Sema::~Sema() { if (VisContext) FreeVisContext(); // Kill all the active scopes. for (unsigned I = 1, E = FunctionScopes.size(); I != E; ++I) delete FunctionScopes[I]; if (FunctionScopes.size() == 1) delete FunctionScopes[0]; // Tell the SemaConsumer to forget about us; we're going out of scope. if (SemaConsumer *SC = dyn_cast<SemaConsumer>(&Consumer)) SC->ForgetSema(); // Detach from the external Sema source. if (ExternalSemaSource *ExternalSema = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) ExternalSema->ForgetSema(); // If Sema's ExternalSource is the multiplexer - we own it. if (isMultiplexExternalSource) delete ExternalSource; threadSafety::threadSafetyCleanup(ThreadSafetyDeclCache); // Destroys data sharing attributes stack for OpenMP DestroyDataSharingAttributesStack(); assert(DelayedTypos.empty() && "Uncorrected typos!"); } This is not guarded by NDEBUG and will trigger unconditionally. So again the question, is this a bug in clang/llvm or is kdevelop miss-using an interface? -- You are receiving this mail because: You are watching all bug changes.